Add deposit_cli_version to the deposit_data*.json file

This commit is contained in:
Hsiao-Wei Wang 2020-10-01 02:17:10 +08:00
parent 034942d6e0
commit ed01530a82
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ from eth2deposit.key_handling.keystore import (
Keystore,
ScryptKeystore,
)
from eth2deposit.settings import DEPOSIT_CLI_VERSION
from eth2deposit.utils.constants import (
BLS_WITHDRAWAL_PREFIX,
ETH2GWEI,
@ -90,6 +91,7 @@ class Credential:
datum_dict.update({'deposit_message_root': self.deposit_message.hash_tree_root})
datum_dict.update({'deposit_data_root': signed_deposit_datum.hash_tree_root})
datum_dict.update({'fork_version': self.fork_version})
datum_dict.update({'deposit_cli_version': DEPOSIT_CLI_VERSION})
return datum_dict
def signing_keystore(self, password: str) -> Keystore:

View File

@ -1,6 +1,9 @@
from typing import Dict, NamedTuple
DEPOSIT_CLI_VERSION = "0.4.0"
class BaseChainSetting(NamedTuple):
GENESIS_FORK_VERSION: bytes