-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identified first roadblock for hive integration #564
Comments
a custom genesis file is something like this if we init the database using {
"nonce": "0x0000000000000000",
"timestamp": "0x00",
"extraData": "0x00",
"gasLimit": "0x02540be400",
"difficulty": "0x020000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"alloc": {
"0x1000000000000000000000000000000000000000": {
"balance": "0x00",
"code": "0x5a465a905090036002900360015500",
"nonce": "0x00",
"storage": {}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": {
"balance": "0x3635c9adc5dea00000",
"code": "0x",
"nonce": "0x00",
"storage": {}
}
},
"config": {
"homesteadBlock": 0,
"eip150Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"berlinBlock": 2000,
"chainId": 1
}
} next time we start syncing with network or importing blocks using |
For For single db or replacement db, we already have the (It's unfortunate one of those takes a relative path to You can pass both options each time |
Selecting the test networks In other words, if we did use a config file it should be for automating more of the command line options, not just the genesis block. Until that's done, I think stick with giving Alternatively it could make sense for certain things to be read from environment variables for Hive. That's also advocated by 12-factor app, but I think environment variables can get out of hand sometimes. |
When test networks are selected, For example different paths under But at the moment it doesn't automatically use a different database for testnets (unless you give |
thanks for your feedback. |
I don't see |
fixed by #566, closing |
hive integration requires client to be able to
init
andimport
chain from file.init
: initialize the database with JSON genesis.import
: importing RLP encoded block and try to validate it. if the block is valid, write it into db.The text was updated successfully, but these errors were encountered: