fjl on master
les: remove useless protocol de… (compare)
holiman on master
eth/protocols/eth: fix slice re… (compare)
Hello, would someone have a solution for this problem ?
https://ethereum.stackexchange.com/questions/88167/pending-transactions-logs-issue
eth_call
but will return the full execution result (and maybe some other things) rather than just the rlp encoded return variable
func (s *PublicBlockChainAPI) GetPendingLogs(ctx context.Context) ([]*types.Log, error) {
state, _, err := s.b.StateAndHeaderByNumberOrHash(ctx, rpc.PendingBlockNumber)
if state == nil || err != nil {
return nil, err
}
return state.Logs(), state.Error()
}
@holiman On the private network, we have contract code as genesis contract. We want to update it in the running network. We are thinking it following way:
Add new field in genesis say contract_alloc
and it will have block number n
, contract address, and new code. At n
block, it will take in affect at give contract address and remains after that n
th block. To do so, we have to change the state DB.
Do you think is it the right approach? If yes, when and where should we make state DB changes? In engine.finalize of n-1
?