From 8d48a21e0d055c85d3d32574e262459c719d4d18 Mon Sep 17 00:00:00 2001 From: Gui Iribarren Date: Thu, 16 May 2024 12:26:29 +0200 Subject: [PATCH] dev: create vocdoni/DEV/34 on top of vocdoni/DEV/33 --- vochain/genesis/genesis.go | 135 +++++++++++++++++++------------------ 1 file changed, 68 insertions(+), 67 deletions(-) diff --git a/vochain/genesis/genesis.go b/vochain/genesis/genesis.go index 2b2aebe97..d9785fe93 100644 --- a/vochain/genesis/genesis.go +++ b/vochain/genesis/genesis.go @@ -97,9 +97,10 @@ var testGenesis = comettypes.GenesisDoc{ } var devGenesis = comettypes.GenesisDoc{ - GenesisTime: time.Date(2024, time.April, 4, 1, 0, 0, 0, time.UTC), - ChainID: "vocdoni/DEV/33", - InitialHeight: 1, + GenesisTime: time.Date(2024, time.May, 16, 8, 0, 0, 0, time.UTC), + ChainID: "vocdoni/DEV/34", + InitialHeight: 243630, + AppHash: []byte(types.HexStringToHexBytes("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7")), ConsensusParams: &comettypes.ConsensusParams{ Block: DefaultBlockParams(), Evidence: comettypes.DefaultEvidenceParams(), @@ -108,70 +109,70 @@ var devGenesis = comettypes.GenesisDoc{ App: 1, }, }, - AppState: jsonRawMessage(AppState{ - MaxElectionSize: 100000, - NetworkCapacity: 20000, - Validators: []AppStateValidators{ - { // 0 - Address: ethereumAddrFromPubKey("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7"), - PubKey: types.HexStringToHexBytes("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7"), - Power: 10, - Name: "", - KeyIndex: 1, - }, - { // 1 - Address: ethereumAddrFromPubKey("0383fe95c5fddee9932ef0f77c180c3c5d0357dba566f2ee77de666a64d9d8c2a6"), - PubKey: types.HexStringToHexBytes("0383fe95c5fddee9932ef0f77c180c3c5d0357dba566f2ee77de666a64d9d8c2a6"), - Power: 10, - Name: "", - KeyIndex: 2, - }, - { // 2 - Address: ethereumAddrFromPubKey("03503c0872bdcd804b1635cf187577ca1caddbbb14ec8eb3af68579fe4bedcf071"), - PubKey: types.HexStringToHexBytes("03503c0872bdcd804b1635cf187577ca1caddbbb14ec8eb3af68579fe4bedcf071"), - Power: 10, - Name: "", - KeyIndex: 3, - }, - { // 3 - Address: ethereumAddrFromPubKey("02159b8dd9b1cea02cd0ff78ae26dc8aa4efc65f46511537d8550fe1ce407100c3"), - PubKey: types.HexStringToHexBytes("02159b8dd9b1cea02cd0ff78ae26dc8aa4efc65f46511537d8550fe1ce407100c3"), - Power: 10, - Name: "", - KeyIndex: 4, - }, - }, - Accounts: []Account{ - { // faucet - Address: types.HexStringToHexBytes("0x7C3a4A5f142ed27C07966b7C7C3F085521154b40"), - Balance: 1000000000, - }, - { // faucet2 - Address: types.HexStringToHexBytes("0x536Da9ecd65Fc0248625b0BBDbB305d0DD841893"), - Balance: 100000000, - }, - { // faucet3 - Address: types.HexStringToHexBytes("0x15A052aA90350BA95038A89A470117A9b9c35960"), - Balance: 100000000, - }, - }, - TxCost: TransactionCosts{ - SetProcessStatus: 2, - SetProcessCensus: 2, - SetProcessQuestionIndex: 1, - RegisterKey: 1, - NewProcess: 5, - SendTokens: 1, - SetAccountInfoURI: 1, - CreateAccount: 1, - AddDelegateForAccount: 1, - DelDelegateForAccount: 1, - CollectFaucet: 1, - SetAccountSIK: 1, - DelAccountSIK: 1, - SetAccountValidator: 10000, - }, - }), + // AppState: jsonRawMessage(AppState{ + // MaxElectionSize: 100000, + // NetworkCapacity: 20000, + // Validators: []AppStateValidators{ + // { // 0 + // Address: ethereumAddrFromPubKey("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7"), + // PubKey: types.HexStringToHexBytes("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7"), + // Power: 10, + // Name: "", + // KeyIndex: 1, + // }, + // { // 1 + // Address: ethereumAddrFromPubKey("0383fe95c5fddee9932ef0f77c180c3c5d0357dba566f2ee77de666a64d9d8c2a6"), + // PubKey: types.HexStringToHexBytes("0383fe95c5fddee9932ef0f77c180c3c5d0357dba566f2ee77de666a64d9d8c2a6"), + // Power: 10, + // Name: "", + // KeyIndex: 2, + // }, + // { // 2 + // Address: ethereumAddrFromPubKey("03503c0872bdcd804b1635cf187577ca1caddbbb14ec8eb3af68579fe4bedcf071"), + // PubKey: types.HexStringToHexBytes("03503c0872bdcd804b1635cf187577ca1caddbbb14ec8eb3af68579fe4bedcf071"), + // Power: 10, + // Name: "", + // KeyIndex: 3, + // }, + // { // 3 + // Address: ethereumAddrFromPubKey("02159b8dd9b1cea02cd0ff78ae26dc8aa4efc65f46511537d8550fe1ce407100c3"), + // PubKey: types.HexStringToHexBytes("02159b8dd9b1cea02cd0ff78ae26dc8aa4efc65f46511537d8550fe1ce407100c3"), + // Power: 10, + // Name: "", + // KeyIndex: 4, + // }, + // }, + // Accounts: []Account{ + // { // faucet + // Address: types.HexStringToHexBytes("0x7C3a4A5f142ed27C07966b7C7C3F085521154b40"), + // Balance: 1000000000, + // }, + // { // faucet2 + // Address: types.HexStringToHexBytes("0x536Da9ecd65Fc0248625b0BBDbB305d0DD841893"), + // Balance: 100000000, + // }, + // { // faucet3 + // Address: types.HexStringToHexBytes("0x15A052aA90350BA95038A89A470117A9b9c35960"), + // Balance: 100000000, + // }, + // }, + // TxCost: TransactionCosts{ + // SetProcessStatus: 2, + // SetProcessCensus: 2, + // SetProcessQuestionIndex: 1, + // RegisterKey: 1, + // NewProcess: 5, + // SendTokens: 1, + // SetAccountInfoURI: 1, + // CreateAccount: 1, + // AddDelegateForAccount: 1, + // DelDelegateForAccount: 1, + // CollectFaucet: 1, + // SetAccountSIK: 1, + // DelAccountSIK: 1, + // SetAccountValidator: 10000, + // }, + // }), } var stageGenesis = comettypes.GenesisDoc{