aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
diff options
context:
space:
mode:
authorchanghong <changhong.yu@shanbay.com>2017-05-11 09:55:48 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-05-25 22:14:33 +0800
commit17f0b1194232ebebc4e14f905e6e1d2d148aa5b6 (patch)
tree60663b43bff6e8df5b5a4693cbabc7756482136e /core/chain_makers.go
parent07aae19e5da66ed404453e6be70ab84db516207b (diff)
downloaddexon-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.gz
dexon-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.zst
dexon-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.zip
core: typos and comments improve
1. fix typos 2. methods recevier of struct should be same 3. comments improve (cherry picked from commit 1ba979539582a00b7fd1a7c8a37a6852e59eac0d)
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index c81239607..cc14f8fb8 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -98,10 +98,10 @@ func (b *BlockGen) Number() *big.Int {
return new(big.Int).Set(b.header.Number)
}
-// AddUncheckedReceipts forcefully adds a receipts to the block without a
+// AddUncheckedReceipt forcefully adds a receipts to the block without a
// backing transaction.
//
-// AddUncheckedReceipts will cause consensus failures when used during real
+// AddUncheckedReceipt will cause consensus failures when used during real
// chain processing. This is best used in conjunction with raw block insertion.
func (b *BlockGen) AddUncheckedReceipt(receipt *types.Receipt) {
b.receipts = append(b.receipts, receipt)