fixes.
This commit is contained in:
parent
d70ec29f4a
commit
8b156d246e
@ -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);
|
||||
|
||||
@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user