Merge pull request #331 from maraoz/bug/fix-historic-sync
fix historic sync
This commit is contained in:
commit
7c37e1e35f
@ -469,9 +469,10 @@ function spec(b) {
|
|||||||
txInfo.txid = txInfo.hash;
|
txInfo.txid = txInfo.hash;
|
||||||
|
|
||||||
|
|
||||||
var to=0;
|
var to = 0;
|
||||||
var tx = txInfo;
|
var tx = txInfo;
|
||||||
tx.outs.forEach( function(o) {
|
if (tx.outs) {
|
||||||
|
tx.outs.forEach(function(o) {
|
||||||
var s = new Script(o.s);
|
var s = new Script(o.s);
|
||||||
var addrs = self.getAddrStr(s);
|
var addrs = self.getAddrStr(s);
|
||||||
|
|
||||||
@ -482,9 +483,10 @@ function spec(b) {
|
|||||||
}
|
}
|
||||||
to++;
|
to++;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var count = 0;
|
var count = 0;
|
||||||
txInfo.vin = txInfo.in.map(function(txin) {
|
txInfo.vin = txInfo. in .map(function(txin) {
|
||||||
var i = {};
|
var i = {};
|
||||||
|
|
||||||
if (txin.coinbase) {
|
if (txin.coinbase) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user