aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/state_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index c33ba9272..4c001a387 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -288,7 +288,7 @@ func (sm *StateManager) AccumelateRewards(block *Block) error {
// Reward amount of ether to the coinbase address
addr.AddFee(CalculateBlockReward(block, len(block.Uncles)))
- var acc []byte
+ acc := make([]byte, len(block.Coinbase))
copy(acc, block.Coinbase)
sm.procState.UpdateAccount(acc, addr)