-
Notifications
You must be signed in to change notification settings - Fork 63
BlockchainOptions#validate is too coarse #120
Comments
Makes sense. We could introduce an option either for validating blocks, or one for validating PoW, and for backwards-compatibility set it to |
I found something weird while implementing this.
This makes me wonder how used is the validation feature, and especially, changing it after creation. To be strict with semver, we should probably fix this and release a new major, but is it worth it if nobody was using it? Just thinking aloud. I don't have a strong opinion on this. |
@alcuadrado Is this technically really a breaking change and not rather some bug fixing? Do you need this for your |
It's hard to tell. The original intention is not clear, and I have no idea who is consuming this library apart from the vm.
Yes, I'll use a setter that updates both BTW, I disabled blocks validation in my code. I'm using |
I would tend to not do this as a major breaking release. Maybe just do your PR, I think we'll find a way how we do the process here. |
I'm working on a testing chain with this module and
ethereumjs-vm
and want to validate everything but POW. The reason I want to do it is that I want to spot every error asap, but I don't want to waste time on POW mining.The problem is that the only way to disable POW verification is by setting
BlockchainOptions#validate
tofalse
, and this also disables blocks' validation (i.e. callingblock.validate
).I think we should have two separate options for this.
The text was updated successfully, but these errors were encountered: