Changed how changes are being applied to states

This commit is contained in:
obscuren
2014-05-17 14:07:52 +02:00
parent 88686cbed2
commit 8730dfdcc2
10 changed files with 82 additions and 98 deletions

View File

@@ -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