• Felix Lange's avatar
    core/vm: track 63/64 call gas off stack (#15563) · be12392f
    Felix Lange authored
    * core/vm: track 63/64 call gas off stack
    
    Gas calculations in gasCall* relayed the available gas for calls by
    replacing it on the stack. This lead to inconsistent traces, which we
    papered over by copying the pre-execution stack in trace mode.
    
    This change relays available gas using a temporary variable, off the
    stack, and allows removing the weird copy.
    
    * core/vm: remove stackCopy
    
    * core/vm: pop call gas into pool
    
    * core/vm: to -> addr
    be12392f
gas_table.go 13.7 KB