Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:40
    holiman commented #21047
  • 11:40
    holiman synchronize #21047
  • 11:24
    ligi edited #21876
  • 10:34
    alexprut edited #21903
  • 10:33
    alexprut edited #21903
  • 10:33
    alexprut review_requested #21903
  • 10:33
    alexprut review_requested #21903
  • 10:33
    alexprut review_requested #21903
  • 10:33
    alexprut review_requested #21903
  • 10:33
    alexprut review_requested #21903
  • 10:33
    alexprut review_requested #21903
  • 10:33
    alexprut review_requested #21903
  • 10:33
    alexprut review_requested #21903
  • 10:33
    alexprut opened #21903
  • 09:31
    SjonHortensius labeled #21902
  • 09:31
    SjonHortensius opened #21902
  • 09:20
    renaynay commented #21895
  • 09:19

    holiman on master

    graphql: always return 400 if e… (compare)

  • 09:19
    holiman closed #21882
  • 09:19
    holiman milestoned #21882
pleasant-doraemon
@mingjingc
Hello everyone, how to use EVM Cmd test without deploy a smartcontract ?
Chris Piatt
@pyython
running into an issue with a Geth node I'm running on Kubernetes. The discovery port is set to 1024 instead of 30303 as is standard and intended in this case. I'm now explicitly passing in the --port=30303 flag, but it's not resolving the issue. I'm using a persistent disk for the chaindata, so I'm thinking there's some config file where I could modify to change the discovery port back to 30303 manually there. Is this the case? And where would I find this file/setting? If not, any other suggestions for how to resolve this issue?
workfilemmfloe
@workfilemmfloe
Jianru Lin
@Jianru-Lin
hi
Roshan
@roshanr95
Hey guys, does the metrics endpoint (--metrics --pprof) work for light clients? All the metrics seem to return 0...
Ravikant sharma
@ravi99609680_twitter
Hey friends
John Krueger
@jkrueger721
hello
Antony Luvera
@_Anarz_twitter

Hello, would someone have a solution for this problem ?

https://ethereum.stackexchange.com/questions/88167/pending-transactions-logs-issue

IK
@thor-ragnarok
@_Anarz_twitter logs are not saved in the DB until the block is fully formed and mined so there is no native way to access logs of pending transactions - one solution i can think of is making a modified endpoint which will be similar to eth_call but will return the full execution result (and maybe some other things) rather than just the rlp encoded return variable
Antony Luvera
@_Anarz_twitter
@thor-ragnarok Thank you for your answer. So the logs are not saved in the db and therefore are not accessible by the API but they do exist, don't they? Insofar as the pending block is created by the node on which mining is activated, it must have "simulated" the execution of these transactions and therefore have generated logs that are located somewhere, right?
Antony Luvera
@_Anarz_twitter
@thor-ragnarok Does something like this should work as a custom endpoint?
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()
}
IK
@thor-ragnarok
@unflores Yes something like this - i am not so familiar with this codebase though...
@_Anarz_twitter ^ dry pinged the wrong person -.-
Sry* - and I have fat fingers
Christian Seberino
@cseberino
Anyone know about full stack solutions to actually roll out a token? What I mean is....I know how to deploy an ERC20 smart contract...However, I think you'd agree there are tons of other parts to the execution if someone like a restaurant wants to do their own coin!? Like.....How sell the tokens in a secure manner to the public? How implement something like gift cards? What wallet to use? etc. Any advice?
Sagato
@Sagato
Hello Peepz
Sagato
@Sagato
I started a geth node on my win machine and am trying to connect via web3.js from my mac to the node on my windows machine. How do I get the connection established? AAnyone here who can help?
Sagato
@Sagato
Someone here?
blueghost56
@blueghost56
One network; explore node ip
Ravikant sharma
@ravi99609680_twitter
Ravikantcool2019/github.io
Lucas-gif845
@Lucas-gif845
my ethereum wallet
Jaynti Kanani
@jdkanani

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

Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<M H Swende (holiman)> Well, of you have your own network and your own forked geth and control the nodes, sure, seems pretty simple to just swap out the code, technically.
<M H Swende (holiman)> I'd recommend to use our discord channel instead, we usually don't really monitor this channel
delistandecrypt
@delistandecrypt
@RED29 I am having the same issue with balancer and my Geth node, did you figure it out?
"Failure querying onchain balances", works with Infura's node, but not mine
delistandecrypt
@delistandecrypt
I debugged a eth_call JSON RPC method that is returning {"jsonrpc":"2.0","id":4140152880,"error":{"code":-32000,"message":"out of gas"}}
the call is done from balancer.exchange when I simply enter the page and put a number in a token without trading anything
why does my geth node return "out of gas", and when I point Metmask to Infura, it works? How can I fix this?
Baron Wilhelm Stein
@WilhelmStein
If I wanted to get the call data of a function during a trace, what approach would you recommend? Aside from trying to match patterns on the debug_traceTransaction output, what other avenues could be fruitfull?
Krasimir Georgiev
@krasi-georgiev

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

Krasimir Georgiev
@krasi-georgiev
Krasimir Georgiev
@krasi-georgiev
hm I just noticed that even if I call the generation of 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
zjsunzone
@zjsunzone
How to determine whether the contract type is ERC20 or ERC721 based on the bytecode of the contract that has been deployed on the chain.
Urgent help
IK
@thor-ragnarok
@zjsunzone there is no 100% method for that - but you can check if the bytecode contains the method signatures you expect erc20 or erc721 to contain - consider that USDT bytecode does contain the erc20 method signatures but it is not itself strictly erc20
this is because the return types are not encoded in the method signature ^
zjsunzone
@zjsunzone
Thanks, I think about other ways.
Don't know how ehterscan does it.
image.png
@thor-ragnarok you know?
about etherscan.
image.png
IK
@thor-ragnarok
i assume they are using the method i described
zjsunzone
@zjsunzone
Ok, i will try.
Tks.
zjsunzone
@zjsunzone
@thor-ragnarok You are right, I did a simple verification.
Jure Grabnar
@jbargu
Is it possible to specify pivot block for --syncmode=fast. I would like to have the state for the last 50k blocks and I cannot afford to have the full node.
darorl89
@darorl89
hey guys, whats the disk requirement for full node?
zjsunzone
@zjsunzone
1T