fix when get genesis block. tx not found on rpc server
This commit is contained in:
parent
e2155fe0bc
commit
961cff5eca
@ -50,10 +50,12 @@ var getTransaction = function(txid, cb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!tx || !tx.info) {
|
if (!tx || !tx.info) {
|
||||||
console.log('[transactions.js.48]:: TXid %s not found in RPC. CHECK THIS.', tx.txid); //TODO
|
console.log('[transactions.js.48]:: TXid %s not found in RPC. CHECK THIS.', txid); //TODO
|
||||||
// not check this. no
|
// not check this. no
|
||||||
tx.info = {
|
tx = {
|
||||||
txid: tx.txid
|
info: {
|
||||||
|
txid: txid
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user