Commit 6d28bf53 authored by obscuren's avatar obscuren

Added a length for copy

parent c0cad0b5
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment