aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-10-12 23:54:59 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-10-16 01:45:44 +0800
commit30f057aaf9891fb37f82d94c24b8aa35d388e07b (patch)
tree0895229a2bd63d671e226c98e44e189572a65c7a /core
parentcefe5c80b1cdcab606a169c0be65d9d2ba9bc941 (diff)
downloadgo-tangerine-30f057aaf9891fb37f82d94c24b8aa35d388e07b.tar
go-tangerine-30f057aaf9891fb37f82d94c24b8aa35d388e07b.tar.gz
go-tangerine-30f057aaf9891fb37f82d94c24b8aa35d388e07b.tar.bz2
go-tangerine-30f057aaf9891fb37f82d94c24b8aa35d388e07b.tar.lz
go-tangerine-30f057aaf9891fb37f82d94c24b8aa35d388e07b.tar.xz
go-tangerine-30f057aaf9891fb37f82d94c24b8aa35d388e07b.tar.zst
go-tangerine-30f057aaf9891fb37f82d94c24b8aa35d388e07b.zip
eth/filters: added benchmark
Diffstat (limited to 'core')
-rw-r--r--core/chain_makers.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index ba09b3029..c2871a097 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -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 {