Browse Source

Merge pull request #272 from jl777/dev

Test
win-cross
jl777 8 years ago
committed by GitHub
parent
commit
e9f87e0ebd
  1. 1
      .gitignore
  2. 8
      iguana/kmd_lookup.h

1
.gitignore

@ -150,4 +150,5 @@ iguana/DB/DEX.log
iguana/iguana_notary.o-54f98cc3 iguana/iguana_notary.o-54f98cc3
iguana/basilisk.o-2ad8cb38
iguana/pangea_hand.o-02d25ec3 iguana/pangea_hand.o-02d25ec3

8
iguana/kmd_lookup.h

@ -207,7 +207,7 @@ FILE *kmd_txidinit(struct iguana_info *coin)
if ( (ptr= kmd_transactionadd(coin,tx,T.numvouts,T.numvins)) != 0 ) if ( (ptr= kmd_transactionadd(coin,tx,T.numvouts,T.numvins)) != 0 )
{ {
if ( ptr != kmd_transaction(coin,tx->txid) ) if ( ptr != kmd_transaction(coin,tx->txid) )
printf("ERROR: %p != %p for ht.%d\n",ptr,kmd_transaction(coin,tx->txid),tx->height); printf("%s ERROR: %p != %p for ht.%d\n",coin->symbol,ptr,kmd_transaction(coin,tx->txid),tx->height);
ptr->fpos = lastpos; ptr->fpos = lastpos;
ptr->numvins = T.numvins; ptr->numvins = T.numvins;
ptr->numvouts = T.numvouts; ptr->numvouts = T.numvouts;
@ -219,7 +219,7 @@ FILE *kmd_txidinit(struct iguana_info *coin)
} }
else else
{ {
printf("error loading vout.%d ht.%d\n",i,T.height); printf("%s error loading vout.%d ht.%d\n",coin->symbol,i,T.height);
break; break;
} }
} }
@ -255,7 +255,7 @@ FILE *kmd_spendinit(struct iguana_info *coin)
{ {
if ( kmd_transactionvin(coin,txid,i,spenttxid,spentvout) < 0 ) if ( kmd_transactionvin(coin,txid,i,spenttxid,spentvout) < 0 )
{ {
printf("error adding spend %s %d of %d\n",bits256_str(str,txid),i,numvins); printf("%s error adding spend %s %d of %d\n",coin->symbol,bits256_str(str,txid),i,numvins);
//break; //break;
} }
} else break; } else break;
@ -277,7 +277,7 @@ FILE *kmd_spendinit(struct iguana_info *coin)
{ {
if ( ptr->ptrs[(i<<1) + 1] != kmd_transaction(coin,vptr->spendtxid) ) if ( ptr->ptrs[(i<<1) + 1] != kmd_transaction(coin,vptr->spendtxid) )
{ {
printf("mismatch %s spend.%d %p %p\n",bits256_str(str,vptr->spendtxid),i,ptr->ptrs[(i<<1) + 1],kmd_transaction(coin,vptr->spendtxid)); printf("%s mismatch %s spend.%d %p %p\n",coin->symbol,bits256_str(str,vptr->spendtxid),i,ptr->ptrs[(i<<1) + 1],kmd_transaction(coin,vptr->spendtxid));
} }
} }
} }

Loading…
Cancel
Save