karalabe on master
eth/protocols/snap: use ephemer… Merge pull request #22678 from … (compare)
karalabe on master
log: fix formatting of big.Int … (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
?
trying to generate some go bindings from this sol file, but it is missing some functions from imported libraries.
https://github.com/tellor-io/TellorCore/blob/master/contracts/Tellor.sol
for example ./libraries/TellorLibrary.sol
imports TellorGettersLibrary.sol
which has didMine
function but this is not added in the generated golang file.
Any idea if I am doing anything wrong or is this some limitation or expected behavior?
command is abigen --sol=abi/Tellor.sol --solc=solc0.5.16 --pkg=contract --type=Tellor --out=pkg/contract/contract.go
TellorGettersLibrary.sol
directly it still doesn't create the didMine
function call/home/krasi/bin/abigen-v1.9.23 --sol=abi/libraries/TellorGettersLibrary.sol --solc=/tmp/bin/solc --pkg=contract --type=Tellor --out=pkg/contract/contract.go