aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction_pool.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-17 20:07:52 +0800
committerobscuren <geffobscura@gmail.com>2014-05-17 20:07:52 +0800
commit8730dfdcc2e2b40410a57385e4864d15f2f0336b (patch)
treeeabf6400bc78b1796317fbb7cef642a7f2da2306 /ethchain/transaction_pool.go
parent88686cbed27ad2e7d5c111051e06c270b1b352a3 (diff)
downloadgo-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.gz
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.bz2
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.lz
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.xz
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.zst
go-tangerine-8730dfdcc2e2b40410a57385e4864d15f2f0336b.zip
Changed how changes are being applied to states
Diffstat (limited to 'ethchain/transaction_pool.go')
-rw-r--r--ethchain/transaction_pool.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethchain/transaction_pool.go b/ethchain/transaction_pool.go
index 21ce8cdc1..da77f32b3 100644
--- a/ethchain/transaction_pool.go
+++ b/ethchain/transaction_pool.go
@@ -149,7 +149,8 @@ func (pool *TxPool) ValidateTransaction(tx *Transaction) error {
}
// Get the sender
- sender := pool.Ethereum.StateManager().procState.GetAccount(tx.Sender())
+ //sender := pool.Ethereum.StateManager().procState.GetAccount(tx.Sender())
+ sender := pool.Ethereum.StateManager().CurrentState().GetAccount(tx.Sender())
totAmount := new(big.Int).Add(tx.Value, new(big.Int).Mul(TxFee, TxFeeRat))
// Make sure there's enough in the sender's account. Having insufficient