eth/filters: added benchmark

This commit is contained in:
Jeffrey Wilcke
2015-10-12 17:54:59 +02:00
parent cefe5c80b1
commit 30f057aaf9
3 changed files with 100 additions and 7 deletions

View File

@ -105,6 +105,10 @@ func (b *BlockGen) AddTx(tx *types.Transaction) {
b.receipts = append(b.receipts, receipt)
}
func (b *BlockGen) AddReceipt(receipt *types.Receipt) {
b.receipts = append(b.receipts, receipt)
}
// TxNonce returns the next valid transaction nonce for the
// account at addr. It panics if the account does not exist.
func (b *BlockGen) TxNonce(addr common.Address) uint64 {