Update light/odr_util.go

This commit is contained in:
CocoaHuke 2018-06-21 21:26:38 -07:00
parent aa13265d90
commit cb4b7596eb
No known key found for this signature in database
GPG key ID: E300819C1AE33223

View file

@ -262,7 +262,7 @@ func GetTxStatus(ctx context.Context, odr OdrBackend, txHash common.Hash) (core.
for _, tx := range bBody.Transactions { for _, tx := range bBody.Transactions {
if tx.Hash() == r.TxHash { if tx.Hash() == r.TxHash {
// Write into database if hash matched, link given hash to verified block hash and index // Write into database if hash matched, link given hash to verified block hash and index
r.StoreResult(odr.Database()) rawdb.WriteTxLookupEntry(odr.Database(), r.TxEntry, r.TxHash)
break break
} }
} }