This commit is contained in:
Christopher Jeffrey 2016-04-08 16:33:15 -07:00
parent d70ec29f4a
commit 8b156d246e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 6 additions and 3 deletions

View File

@ -122,7 +122,10 @@ function getTX(callback) {
function getBlock(callback) {
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) {
if (err)
return callback(err);

View File

@ -106,8 +106,8 @@ TX.prototype.clone = function clone() {
copy.outputs.push({
value: this.outputs[i].value,
script: {
code: this.inputs[i].script.code.slice(),
raw: this.inputs[i].script.raw
code: this.outputs[i].script.code.slice(),
raw: this.outputs[i].script.raw
}
});
}