You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
domain ought to be 0x0300000000000001 here. I suspect the default value in compute_domain() is not being correctly handled after the spec constants are overwritten by loading the minimal configuration.
defcompute_domain(domain_type: DomainType, fork_version: Version=GENESIS_FORK_VERSION) ->Domain:
""" Return the domain for the ``domain_type`` and ``fork_version``. """returnDomain(domain_type+fork_version)
The text was updated successfully, but these errors were encountered:
Ah, looks like it. Thanks for doing the investigative work.
Will move the setting of fork_version when nothing is passed in into the function
defcompute_domain(domain_type: DomainType, fork_version: Version=None) ->Domain:
""" Return the domain for the ``domain_type`` and ``fork_version``. """iffork_versionisNone:
fork_version=GENESIS_FORK_VERSIONreturnDomain(domain_type+fork_version)
Consider test genesis/initialization, although this afflicts other tests as well. This uses
minimal
config to generate a load of signed deposits.In
minimal
configGENESIS_FORK_VERSION
is set to0x00000001
. The test generator correctly generates state with this fork information:However, all of the deposits are signed with
GENESIS_FORK_VERSION = 0x00000000
.This can be seen by printing some intermediate values in sign_deposit_data():
This prints
domain
ought to be0x0300000000000001
here. I suspect the default value in compute_domain() is not being correctly handled after the spec constants are overwritten by loading the minimal configuration.The text was updated successfully, but these errors were encountered: