Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
  • 08:57
    MariusVanDerWijden commented #21830
  • 08:50
    holiman synchronize #21859
  • 08:47
    holiman commented #21471
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
IK
@thor-ragnarok
@darorl89
alice@node_1:~/.ethereum$ ls
geth  geth.ipc  history  keystore
alice@node_1:~/.ethereum$ du -h
6.2M    ./geth/nodes
160G    ./geth/chaindata/ancient
293G    ./geth/chaindata
187M    ./geth/ethash
1.1G    ./geth/triecache
294G    ./geth
4.0K    ./keystore
294G    .
at least 300gb just to sync to current block
Roman Burkovsky
@m0onspell
2020-10-22 13.42.25.jpg
@thor-ragnarok for me it's like this currently, am I close? Still syncing at ~594,000,000 state entries
IK
@thor-ragnarok
hope so... good luck :)
mhardock
@mhardock
is there a geth equivalent of parity_call? Which allows sequential eth_call and have the state maintained inbetween?
ChristainDuncan
@ChristainDuncan
BTC fundamentals have improved significantly over the last year or two. The price was due to increase earlier this year, but the coronavirus situation shot it down due to the selloff and liquidity squeeze. Now with corona mostly out of the way and paypal announcing they are adding BTC and other cryptos, it is getting the bump it earned. It may not have much inherent value, but this time around the price increase (thus far) is supported by an improvement in fundamentals after a long consolidation period. My guess is it will overshoot in the months to come... because you know crypto traders love that FOMO. DCA can be a crude but quite efficient way to accumulate bitcoins but hardcore holding can become an obsession that shouldn’t happen to anyone as you would most definitely regret it and is on its own a form of laziness. For starters, the token had rallied too rapidly amid the booming craze for decentralized finance projects. It demanded a natural correction on profit-taking sentiment alone. It started after the token established its record high near $44,000 Bitcoin holders who bought in 2010 and have never spent it are just crazy people who could have spent and also created 100 sources of passive income by now. I learned from a Pro Trader Mark, @Trademasterlive on YouTube, and Telegram +1 (301)-231-1550.He has licensed A trader who over the months has helped me grow my portfolio After some Trading Session with him even for a beginner like me, I Made over 20 BTC in trading using a well-established and easy to use pattern and signal service
IK
@thor-ragnarok
@mhardock no