aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-21 06:17:53 +0800
committerobscuren <geffobscura@gmail.com>2014-03-21 06:17:53 +0800
commit7705b23f248156878d00c301fbbadafedaf7e3d2 (patch)
tree11f3373c598106b9f6f689370079a9b220a42e34 /ethchain/block.go
parentf3d27bf5d878120346f8cdd0744e7f1f8e1ee631 (diff)
downloaddexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar
dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.gz
dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.bz2
dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.lz
dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.xz
dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.zst
dexon-7705b23f248156878d00c301fbbadafedaf7e3d2.zip
Removed caller from tx and added "callership" to account.
Transactions can no longer serve as callers. Accounts are now the initial callee of closures. Transactions now serve as transport to call closures.
Diffstat (limited to 'ethchain/block.go')
-rw-r--r--ethchain/block.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/block.go b/ethchain/block.go
index 20af73ba2..1f63c2c9e 100644
--- a/ethchain/block.go
+++ b/ethchain/block.go
@@ -142,7 +142,7 @@ func (block *Block) PayFee(addr []byte, fee *big.Int) bool {
data := block.state.trie.Get(string(block.Coinbase))
// Get the ether (Coinbase) and add the fee (gief fee to miner)
- ether := NewAccountFromData([]byte(data))
+ ether := NewAccountFromData(block.Coinbase, []byte(data))
base = new(big.Int)
ether.Amount = base.Add(ether.Amount, fee)