Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 28 2019 19:45
    @Arachnid banned @merkle_tree_twitter
  • Feb 17 2019 00:56
    @jpitts banned @Aquentson_twitter
  • Apr 09 2018 04:14
    @holiman banned @JennyJennywren_twitter
  • Oct 21 2017 19:12
    @Arachnid banned @Musk11
Paweł Bylica
@chfast
Danke
Martin Holst Swende
@holiman
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> Question regarding miners: do miners get gas funds after a Tx is being ran, or do they get it at the end of a block?
Jason Carver
@carver
End of the block
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> Thanks
<Jochem Brouwer> Actually it seems to be at end of Tx per the yellow paper
Jason Carver
@carver
Hah, yeah, I answered too fast without thinking. Sorry about that. I thought you were asking something about the block reward, which doesn't make sense anyway.
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> No problem 🙂 I re-checked it because otherwise we'd have a bug in the JS VM 😛
<Jochem Brouwer> In retrospect I should've known the VM was correct since pre-Byzantium tx receipts also include intermediate state roots. Those tests would fail if the reward would be applied after every tx was executed 🙂
Tomasz Kajetan Stańczak
@tkstanczak
where is the EIP-1559 call?
anybody has a zoom link?
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Souptacular> @tkstanczak Posted in the Eth R&D Discord in the EIP-1559 channel
https://consensys.zoom.us/j/91866526216
Tomasz Kajetan Stańczak
@tkstanczak
found it, thank you!
Tim Beiko
@timbeiko
Oh, just saw this. I had also posted to AllCoreDevs on Discord because I thought this channel was deprecated. My bad!
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> How are storage values internally stored? If I store 0x01 is it stored as 0x01 in the trie or 0x0000..01 in the trie (left-padded to 32 bytes)?
<Jochem Brouwer> "The core of the trie, and its sole requirement in terms of the protocol specification, is to provide a single value that identifies a given set of key-value pairs, which may be either a 32-byte sequence or the empty byte sequence." -> it should be 32 bytes per yellow paper
Danno Ferrin
@shemnon
Trie key is Keccak hashed version of the full 256 bit representation.
Makes Deep branch attacks difficult (as difficuly as mining)
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> Ah wait I am still confused. If I would PUSH1 0x01 PUSH1 0x00 SSTORE STOP (write the value "0x01" to storage slot "0x00") what is written? I am particularly interested in if 0x01 is left-padded so it is 32 bytes. Or in other words what if I would PUSH32 0x0000..01 PUSH1 0x00 SSTORE STOP would this be (semantically) the same?
ledgerwatch
@AlexeyAkhunov
yes, they are semantically the same, because PUSH1 simply takes 1 bytes and puts it on the stack as 32-byte value (left padded with zeroes).
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> Okay this makes sense. And therefore if I write to the contract state trie I either put the empty byte (to clear the slot) or I put a 32-byte value?
<Jochem Brouwer> And internally in the trie this value is actually first RLP-encoded?
ledgerwatch
@AlexeyAkhunov
the values get trimmed of any leading zeroes :) so the value of 32-byte of zeroes is the same as the empty value :)
I think the value is RLP encoded twice before it is added to the storage trie, but I don't remember very well now
As @shemnon noted, keys are left-padded, then Keccak256-ed, values are trimmed, double RLP-encoded, and then the pair of key (the remainder, not the whole key) and the RLP encoded value, gets RLP encoded again :)
there is a lot of RLP encoding going on there, i can tell you that...
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> I thought I got the trie at some point but it is rather complex 😅
<Jochem Brouwer> Thanks a lot! Do you have a reference somewhere about this value trimming? I can't seem to find it in the Yellow Paper 😓
<Jochem Brouwer> (Code reference is fine too)
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> Never mind I think I found it in the Yellow Paper 🙂
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> What is the exact reason why we KECCAK the address in order to get the key to put it in the MPT? Now if I traverse the MPT I can find all accounts, but I don't know which address it belongs to (unless I have a lookup table). What is the reason to KECCAK the addresses?
Martin Holst Swende
@holiman
The reasoning was as @shemnon said: Makes Deep branch attacks difficult (as difficuly as mining). To avoid making it easy for attackers to intentionally create super-deep/dense subtries
Eth-Gitter-Bridge
@Eth-Gitter-Bridge
<Jochem Brouwer> Ahhh I didn't get that part
<Jochem Brouwer> I see now! Thanks!
<Jochem Brouwer> (I read the response but did not understand the implications). Should have asked more 😅
Eth-Gitter-Bridge
@Eth-Gitter-Bridge

<vbuterin> Cross-posting this here:

ethereum/EIPs#2929
ethereum/EIPs#2930

<Souptacular> @vbuterin did you post this in the new #allcoredevs channel in the Eth R&D Discord? This Gitter/Telegram bridged ACD chat is deprecated.
<vbuterin> I did not!
<vbuterin> I was looking for that channel
<vbuterin> Will repost
Yannick Monye
@ymonye
Hi. Apologies if this was already mentioned here (did a search) or Twitter, but there appears to be a "Max Price" gwei limit in Geth clients. Gas prices are quickly approaching that limit, according to https://ethgasstation.info/. I've already brought it up in the Geth Discord, as well as tagged Peter Szilagyi, just in case anyone here could verify there's a team already looking into it.
Marius van der Wijden
@MariusVanDerWijden
We're already looking into it, thanks!
Yannick Monye
@ymonye
Awesome!
Hudson Jameson
@Souptacular

@/all Reminder! Please migrate from this channel to the Eth R&D Discord server where we have a #allcoredevs channels.

How to join: Use this invite link - https://discord.gg/qGpsxSA and when you enter the server DM me or tag me in the #allcoredevs channel if you want any flair/designations added (each team has their own labels). Remember to enable app based 2FA on your account and backup your recovery codes!

The agenda for Friday's meeting is up: ethereum/pm#203

Hudson Jameson
@Souptacular
2.5 hours until today's ACD meeting.
Hudson Jameson
@Souptacular
matrixbot
@matrixbot
rusel79 Hallo.
Thomas S. McCabe
@thomasmccabe
Has anyone come across this error when trying to connect to their local geth node via rpc?
Oct 28 02:14:02.198 INFO Connecting to Ethereum..., capabilities: archive, trace, network: mainnet Oct 28 02:14:02.208 DEBG Trying again after net_version RPC call failed (attempt #1) with result Err(Rpc(Error { code: MethodNotFound, message: "the method net_version does not exist/is not available", data: None }))
Marius van der Wijden
@MariusVanDerWijden
You maybe need to activate the rpc api's with something like this --http --http.port 8546 --http.api "eth,net,debug,web3" console