aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/receipt.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-14 23:52:14 +0800
committerobscuren <geffobscura@gmail.com>2015-02-14 23:52:14 +0800
commit32c7ebc51dcb31f21efe1b9c75f2b86cd216f510 (patch)
tree200d8e48da46816b6b741de51dece5d7c15ba17a /core/types/receipt.go
parent65159d65c8c830342b3b1ca666571997209826c5 (diff)
downloadgo-tangerine-32c7ebc51dcb31f21efe1b9c75f2b86cd216f510.tar
go-tangerine-32c7ebc51dcb31f21efe1b9c75f2b86cd216f510.tar.gz
go-tangerine-32c7ebc51dcb31f21efe1b9c75f2b86cd216f510.tar.bz2
go-tangerine-32c7ebc51dcb31f21efe1b9c75f2b86cd216f510.tar.lz
go-tangerine-32c7ebc51dcb31f21efe1b9c75f2b86cd216f510.tar.xz
go-tangerine-32c7ebc51dcb31f21efe1b9c75f2b86cd216f510.tar.zst
go-tangerine-32c7ebc51dcb31f21efe1b9c75f2b86cd216f510.zip
Fixed mining & limited hash power
Diffstat (limited to 'core/types/receipt.go')
-rw-r--r--core/types/receipt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/receipt.go b/core/types/receipt.go
index bac64e41d..49e68e233 100644
--- a/core/types/receipt.go
+++ b/core/types/receipt.go
@@ -17,7 +17,7 @@ type Receipt struct {
}
func NewReceipt(root []byte, cumalativeGasUsed *big.Int) *Receipt {
- return &Receipt{PostState: ethutil.CopyBytes(root), CumulativeGasUsed: cumalativeGasUsed}
+ return &Receipt{PostState: ethutil.CopyBytes(root), CumulativeGasUsed: new(big.Int).Set(cumalativeGasUsed)}
}
func NewRecieptFromValue(val *ethutil.Value) *Receipt {