Update test to new API.

This commit is contained in:
Dale Rahn 2014-04-15 10:43:12 -04:00
parent dd41d71a31
commit ae25e28d7e

View file

@ -151,8 +151,9 @@ out:
}
}
txshalist, _ := blk.TxShas()
for _, txsha := range txshalist {
txlist := blk.Transactions()
for _, tx := range txlist {
txsha := tx.Sha()
txReply, err := db.FetchTxBySha(txsha)
if err != nil {
t.Errorf("fully spent lookup %v err %v\n", hash, err)