Skip to content

Commit

Permalink
replica: don't set sender balance to maxuint, aligns to geth # ethere…
Browse files Browse the repository at this point in the history
  • Loading branch information
AusIV committed Aug 20, 2020
1 parent 91fff58 commit a65b529
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion replica/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ func (backend *ReplicaBackend) GetTd(ctx context.Context, blockHash common.Hash)
}
// Use core.NewEVMContext and vm.NewEVM - Will need custom ChainContext implementation
func (backend *ReplicaBackend) GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, header *types.Header) (*vm.EVM, func() error, error) {
state.SetBalance(msg.From(), math.MaxBig256)
vmError := func() error {
if backend.evmSemaphore != nil {
<-backend.evmSemaphore
Expand Down

0 comments on commit a65b529

Please sign in to comment.