Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 02 2018 10:49
    @holgerd77 banned @johnny_musk_twitter
bwty
@whalelephant
yep, will be opening an issue to get clarity! thanks
Holger Drewes
@holgerd77
Just released ethereumjs-tx v2.1.1 with Istanbul support (EIP-2028, call data gas cost reductions).
jochem-brouwer
@jochem-brouwer
Hey guys! I am trying to run ethereumjs-vm using the istanbul hardfork. I create a vm using the hardfork: istanbul param in the constructor and made sure I am using >=4.0.0. However it does not appear to work while I explicitly checked in the repo and I can see that the (draft) features of istanbul I want to use are there. Anything I might be missing here?
Patricio Palladino
@alcuadrado
Most istanbul features haven't been released yet
You may have to build the vm yourself
jochem-brouwer
@jochem-brouwer
I am interested in the SLOAD update from 200 -> 800 gas. This appears to be in the code?
Patricio Palladino
@alcuadrado
Yes, that has been merged ethereumjs/ethereumjs-vm#581
but not released yet
You can try it by cloning the repo, installing it, and running npm run build:dist
jochem-brouwer
@jochem-brouwer
Allright thanks I will try this. The readme implies that from V4.0.0 you can activate the istanbul fork - but I guess my feature might not be available yet.
Patricio Palladino
@alcuadrado
Oh, I see. Sorry for the confusion. We should probably add some notes about this to the readme
jochem-brouwer
@jochem-brouwer
:thumbsup:
jochem-brouwer
@jochem-brouwer
@alcuadrado thanks, it works now =)
(after building it myself)
nvm it looks like sload has not been implemented yet
jochem-brouwer
@jochem-brouwer
actually the implementation now has a bug if you switch VM. it overwrites codes globally in lib/evm/opcodes.ts. I will open an issue
Holger Drewes
@holgerd77
EthereumJS VM v4.1.0 with full-featured Istanbul support out, see (and applaud to :smile:) Reddit post on this!
Thanks @s1na for the fantastic integration work of various EIPS.
AxiomaAbsurdo
@AxiomaAbsurdo
Hello, I am currently working on the communication of 3 nodes, I am using ethereumjs-devp2p, I have analyzed the examples that the repository has.
I would like to know if there are more examples, the most basic ones that exist, as for example to generate nodes, without needing to use eth or les?
Holger Drewes
@holgerd77
@AxiomaAbsurdo sorry, there are no more examples available, at least not to my knowledge and not in the main repository
jochem-brouwer
@jochem-brouwer
Heya! I know that it is possible to add the step 'event' when we execute a transaction/code. I was wondering if it is also possible to step-by-step execute code via some builtin function (so no tricks like getting deep into the package and hooking it up from there)
So if I execute 6080604052 then I want to PUSH1 80, yield (execute some logic) and then move on to the next instruction
Use case: If I hit a SLOAD I want to load this data from an address on a network and then put this in the state, so instead of the default 0 we will get the actual value on the chain on the stack
(Or some other function like EXTCODESIZE, anything dependent on chain state)
jochem-brouwer
@jochem-brouwer
Woops - I should listen them using async functions. Don't know why I did not try that :joy:
jochem-brouwer
@jochem-brouwer
Ok so I tried using an async function on the step event, but it does not yield the VM
jochem-brouwer
@jochem-brouwer

OK finally figured it out. It might be my lack of knowledge in javascript what caused this, but I also think this might be documented a bit better.

From lib/index.ts:

 * This class is an AsyncEventEmitter, which means that event handlers are run to completion before
 * continuing. If an error is thrown in an event handler, it will bubble up to the VM and thrown
 * from the method call that triggered the event.
This makes me assume that I can create an async function in the .on part of the EventEmitter of the VM (which is an AsyncEventEmitter) and that it waits before it completes. But actually, you need to add an extra parameter in the .on part which is a function which you call next. I'll open an issue about this
Patricio Palladino
@alcuadrado
@jochem-brouwer thanks for reporting this. That was my mistake 🙈 It's indeed confusing

Use case: If I hit a SLOAD I want to load this data from an address on a network and then put this in the state, so instead of the default 0 we will get the actual value on the chain on the stack

I think implementing your own StateManager would be simpler

Raul Laprida
@raullaprida
Hello!, I noticed the ethereum-devp2p's last activity is from June. Is the javascript implementation of devp2p still active?
journey
@PHPJourney
who sign string can't broadcast
My sign can't broadcast. not error .
I don't know what happened.
jochem-brouwer
@jochem-brouwer
Heya. Is there any support in ethereumjs for bip39 hd wallets with a passphrase??
Patricio Palladino
@alcuadrado
bip39 with a passphrase? how does that work?
oh, so the passphrase is used as a salt
There's https://github.com/ethereumjs/ethereumjs-wallet, which supports BIP32, but not 39
journey
@PHPJourney
hello ,everyone
the request of a dependency is an expression
I'm try build ethereumjs-Tx node packages. but can't include modules.
how do it work.

who sign string can't broadcast

this question is successed. Nonce is Error.

Patricio Palladino
@alcuadrado
I've never used electron, but I guess that problem is that it doesn't support dynamic dependencies
But that seems to be a web3.js problem
Please, report it there
journey
@PHPJourney
Well, the above problem has been solved. It does not support the new version of node. My version number is invalid with 12.10.0. Version 10.16.3 is OK
jochem-brouwer
@jochem-brouwer
@alcuadrado I figured it out, it is part of the bip39 package. You can generate a seed from it using a password and then dump the given seed into hdkey ;)
Patricio Palladino
@alcuadrado
I'm glad you managed to do it @jochem-brouwer :)