fixes.
This commit is contained in:
parent
d70ec29f4a
commit
8b156d246e
@ -122,7 +122,10 @@ function getTX(callback) {
|
|||||||
|
|
||||||
function getBlock(callback) {
|
function getBlock(callback) {
|
||||||
var hash = argv.args[0];
|
var hash = argv.args[0];
|
||||||
hash = utils.revHex(hash);
|
if (utils.isInt(hash))
|
||||||
|
hash = +hash;
|
||||||
|
else
|
||||||
|
hash = utils.revHex(hash);
|
||||||
client.getBlock(hash, function(err, block) {
|
client.getBlock(hash, function(err, block) {
|
||||||
if (err)
|
if (err)
|
||||||
return callback(err);
|
return callback(err);
|
||||||
|
|||||||
@ -106,8 +106,8 @@ TX.prototype.clone = function clone() {
|
|||||||
copy.outputs.push({
|
copy.outputs.push({
|
||||||
value: this.outputs[i].value,
|
value: this.outputs[i].value,
|
||||||
script: {
|
script: {
|
||||||
code: this.inputs[i].script.code.slice(),
|
code: this.outputs[i].script.code.slice(),
|
||||||
raw: this.inputs[i].script.raw
|
raw: this.outputs[i].script.raw
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user