Merge pull request #406 from thanhson1085/master

db receipt lacks txs
This commit is contained in:
Nguyen Sy Thanh Son 2019-01-14 20:32:26 +07:00 committed by GitHub
commit 19ebd0cb7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1038,6 +1038,7 @@ func (c *Posv) CacheData(header *types.Header, txs []*types.Transaction, receipt
} }
if b == types.ReceiptStatusFailed { if b == types.ReceiptStatusFailed {
log.Debug("Sign tx failed", "hash", tx.Hash().String())
continue continue
} }

View file

@ -345,7 +345,8 @@ func GetRewardForCheckpoint(c *posv.Posv, chain consensus.ChainReader, number ui
} }
} }
if b == types.ReceiptStatusFailed { if b == types.ReceiptStatusFailed && i >= rCheckpoint {
log.Debug("Sign tx failed", "hash", tx.Hash().String())
continue continue
} }