diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-17 03:35:24 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-17 03:35:24 +0800 |
commit | 10ed107ba2001d1aabba3d319ba88c5ce6e8fdc0 (patch) | |
tree | 7c79e36cadcc57a8c936f06838a061cdf7e3fd8a /core/chain_makers.go | |
parent | c5ef2afda56c069fda5528c48bd3d831b81455dc (diff) | |
parent | 6dc14788a238f3e0ec786c6c04d476a3b957e645 (diff) | |
download | dexon-10ed107ba2001d1aabba3d319ba88c5ce6e8fdc0.tar dexon-10ed107ba2001d1aabba3d319ba88c5ce6e8fdc0.tar.gz dexon-10ed107ba2001d1aabba3d319ba88c5ce6e8fdc0.tar.bz2 dexon-10ed107ba2001d1aabba3d319ba88c5ce6e8fdc0.tar.lz dexon-10ed107ba2001d1aabba3d319ba88c5ce6e8fdc0.tar.xz dexon-10ed107ba2001d1aabba3d319ba88c5ce6e8fdc0.tar.zst dexon-10ed107ba2001d1aabba3d319ba88c5ce6e8fdc0.zip |
Merge pull request #1899 from obscuren/mipmap-bloom
core, eth/filters, miner, xeth: Optimised log filtering
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r-- | core/chain_makers.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go index dbe3adea7..85a4955db 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -105,6 +105,15 @@ func (b *BlockGen) AddTx(tx *types.Transaction) { b.receipts = append(b.receipts, receipt) } +// AddUncheckedReceipts forcefully adds a receipts to the block without a +// backing transaction. +// +// AddUncheckedReceipts will cause consensus failures when used during real +// chain processing. This is best used in conjuction with raw block insertion. +func (b *BlockGen) AddUncheckedReceipt(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 { |