Skip to content

Commit

Permalink
Merge pull request #82 from wormholes-org/perf_genesisaccounts
Browse files Browse the repository at this point in the history
fix: modify the balance of genesis accounts and the networkid
  • Loading branch information
wormholeslab authored Dec 27, 2022
2 parents e87ff60 + 3ecf9aa commit e8650fc
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
SetDNSDiscoveryDefaults(cfg, params.TestNetGenesisHash)
case ctx.GlobalBool(DevNetFlag.Name):
if !ctx.GlobalIsSet(NetworkIdFlag.Name) {
cfg.NetworkId = 51893
cfg.NetworkId = 51894
}
cfg.Genesis = core.DefaultDevNetGenesisBlock()
SetDNSDiscoveryDefaults(cfg, params.DevNetGenesisHash)
Expand Down
36 changes: 18 additions & 18 deletions core/wormholesgenesis_alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ package core
//const mainnetAllocData =

const testnetAllocData = "" +
"0x091DBBa95B26793515cc9aCB9bEb5124c479f27F:0x5ca4ec2a79a7f67000000," +
"0x091DBBa95B26793515cc9aCB9bEb5124c479f27F:0x108b2a2c28029094000000," +
"0x107837Ea83f8f06533DDd3fC39451Cd0AA8DA8BD:0xed2b525841adfc00000," +
"0x612DFa56DcA1F581Ed34b9c60Da86f1268Ab6349:0xed2b525841adfc00000," +
"0x612DFa56DcA1F581Ed34b9c60Da86f1268Ab6349:0xa30dc89cad279d400000," +
"0x84d84e6073A06B6e784241a9B13aA824AB455326:0xed2b525841adfc00000," +
"0x9e4d5C72569465270232ed7Af71981Ee82d08dBF:0x5ca4ec2a79a7f67000000," +
"0x9e4d5C72569465270232ed7Af71981Ee82d08dBF:0xa30dc89cad279d400000," +
"0xa270bBDFf450EbbC2d0413026De5545864a1b6d6:0xed2b525841adfc00000," +
"0x4110E56ED25e21267FBeEf79244f47ada4e2E963:0xed2b525841adfc00000," +
"0x4110E56ED25e21267FBeEf79244f47ada4e2E963:0xa30dc89cad279d400000," +
"0xdb33217fE3F74bD41c550B06B624E23ab7f55d05:0xed2b525841adfc00000," +
"0xE2FA892CC5CC268a0cC1d924EC907C796351C645:0x5ca4ec2a79a7f67000000," +
"0xE2FA892CC5CC268a0cC1d924EC907C796351C645:0xa30dc89cad279d400000," +
"0x52EAE6D396E82358D703BEDeC2ab11E723127230:0xed2b525841adfc00000," +
"0x31534d5C7b1eabb73425c2361661b878F4322f9D:0xed2b525841adfc00000," +
"0x31534d5C7b1eabb73425c2361661b878F4322f9D:0xa30dc89cad279d400000," +
"0xbbaE84E9879F908700c6ef5D15e928Abfb556a21:0xed2b525841adfc00000," +
"0x20cb28AE861c322A9A86b4F9e36Ad6977930fA05:0x5ca4ec2a79a7f67000000," +
"0x20cb28AE861c322A9A86b4F9e36Ad6977930fA05:0xa30dc89cad279d400000," +
"0xFfAc4cd934f026dcAF0f9d9EEDDcD9af85D8943e:0xed2b525841adfc00000," +
"0xc067825f4B7a53Bb9f2Daf72fF22C8EE39736afF:0xed2b525841adfc00000," +
"0xc067825f4B7a53Bb9f2Daf72fF22C8EE39736afF:0xa30dc89cad279d400000," +
"0x7bf72621Dd7C4Fe4AF77632e3177c08F53fdAF09:0xed2b525841adfc00000," +
"0x68B14e0F18C3EE322d3e613fF63B87E56D86Df60:0x25f273933db5700000," +
"0xeEF79493F62dA884389312d16669455A7E0045c1:0x25f273933db5700000," +
Expand Down Expand Up @@ -66,24 +66,24 @@ const testnetAllocData = "" +
"0x7ddcC65DABAd6b5e1c54d0784b4290f704259E34:0x0," +
"0xbad3F0edd751B3b8DeF4AaDDbcF5533eC93452C2:0x0," +
"0x969b308f059cACdD7a3aEb232584fb09fbCBb3A1:0x0," +
"0xBa7B3387D88Bd7675DE8B492a9067dc6B7A59311:0x1438d20e221f9fe69700000"
"0xBa7B3387D88Bd7675DE8B492a9067dc6B7A59311:0x145f11c18e5b5c1a3b00000"

const devnetAllocData = "" +
"0x091DBBa95B26793515cc9aCB9bEb5124c479f27F:0x5ca4ec2a79a7f67000000," +
"0x091DBBa95B26793515cc9aCB9bEb5124c479f27F:0x108b2a2c28029094000000," +
"0x107837Ea83f8f06533DDd3fC39451Cd0AA8DA8BD:0xed2b525841adfc00000," +
"0x612DFa56DcA1F581Ed34b9c60Da86f1268Ab6349:0xed2b525841adfc00000," +
"0x612DFa56DcA1F581Ed34b9c60Da86f1268Ab6349:0xa30dc89cad279d400000," +
"0x84d84e6073A06B6e784241a9B13aA824AB455326:0xed2b525841adfc00000," +
"0x9e4d5C72569465270232ed7Af71981Ee82d08dBF:0x5ca4ec2a79a7f67000000," +
"0x9e4d5C72569465270232ed7Af71981Ee82d08dBF:0xa30dc89cad279d400000," +
"0xa270bBDFf450EbbC2d0413026De5545864a1b6d6:0xed2b525841adfc00000," +
"0x4110E56ED25e21267FBeEf79244f47ada4e2E963:0xed2b525841adfc00000," +
"0x4110E56ED25e21267FBeEf79244f47ada4e2E963:0xa30dc89cad279d400000," +
"0xdb33217fE3F74bD41c550B06B624E23ab7f55d05:0xed2b525841adfc00000," +
"0xE2FA892CC5CC268a0cC1d924EC907C796351C645:0x5ca4ec2a79a7f67000000," +
"0xE2FA892CC5CC268a0cC1d924EC907C796351C645:0xa30dc89cad279d400000," +
"0x52EAE6D396E82358D703BEDeC2ab11E723127230:0xed2b525841adfc00000," +
"0x31534d5C7b1eabb73425c2361661b878F4322f9D:0xed2b525841adfc00000," +
"0x31534d5C7b1eabb73425c2361661b878F4322f9D:0xa30dc89cad279d400000," +
"0xbbaE84E9879F908700c6ef5D15e928Abfb556a21:0xed2b525841adfc00000," +
"0x20cb28AE861c322A9A86b4F9e36Ad6977930fA05:0x5ca4ec2a79a7f67000000," +
"0x20cb28AE861c322A9A86b4F9e36Ad6977930fA05:0xa30dc89cad279d400000," +
"0xFfAc4cd934f026dcAF0f9d9EEDDcD9af85D8943e:0xed2b525841adfc00000," +
"0xc067825f4B7a53Bb9f2Daf72fF22C8EE39736afF:0xed2b525841adfc00000," +
"0xc067825f4B7a53Bb9f2Daf72fF22C8EE39736afF:0xa30dc89cad279d400000," +
"0x7bf72621Dd7C4Fe4AF77632e3177c08F53fdAF09:0xed2b525841adfc00000," +
"0x68B14e0F18C3EE322d3e613fF63B87E56D86Df60:0x25f273933db5700000," +
"0xeEF79493F62dA884389312d16669455A7E0045c1:0x25f273933db5700000," +
Expand Down Expand Up @@ -116,4 +116,4 @@ const devnetAllocData = "" +
"0x7ddcC65DABAd6b5e1c54d0784b4290f704259E34:0x0," +
"0xbad3F0edd751B3b8DeF4AaDDbcF5533eC93452C2:0x0," +
"0x969b308f059cACdD7a3aEb232584fb09fbCBb3A1:0x0," +
"0xBa7B3387D88Bd7675DE8B492a9067dc6B7A59311:0x1438d20e221f9fe69700000"
"0xBa7B3387D88Bd7675DE8B492a9067dc6B7A59311:0x145f11c18e5b5c1a3b00000"
32 changes: 16 additions & 16 deletions core/wormholesgenesis_validator_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,37 +35,37 @@ const mainnetValidatorData_v2 = "" +
"0x7bf72621Dd7C4Fe4AF77632e3177c08F53fdAF09:0x943b1377290cbd800000:0x969b308f059cACdD7a3aEb232584fb09fbCBb3A1"

const testnetValidatorData_v2 = "" +
"0x091DBBa95B26793515cc9aCB9bEb5124c479f27F:0x5ca4ec2a79a7f67000000:0x8520dc57A2800e417696bdF93553E63bCF31e597," +
"0x091DBBa95B26793515cc9aCB9bEb5124c479f27F:0x108b2a2c28029094000000:0x8520dc57A2800e417696bdF93553E63bCF31e597," +
"0x107837Ea83f8f06533DDd3fC39451Cd0AA8DA8BD:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x612DFa56DcA1F581Ed34b9c60Da86f1268Ab6349:0xed2b525841adfc00000:0x66f9e46b49EDDc40F0dA18D67C07ae755b3643CE," +
"0x612DFa56DcA1F581Ed34b9c60Da86f1268Ab6349:0xa30dc89cad279d400000:0x66f9e46b49EDDc40F0dA18D67C07ae755b3643CE," +
"0x84d84e6073A06B6e784241a9B13aA824AB455326:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x9e4d5C72569465270232ed7Af71981Ee82d08dBF:0x5ca4ec2a79a7f67000000:0x96f2A9f08c92c174700A0bdb452EA737633382A0," +
"0x9e4d5C72569465270232ed7Af71981Ee82d08dBF:0xa30dc89cad279d400000:0x96f2A9f08c92c174700A0bdb452EA737633382A0," +
"0xa270bBDFf450EbbC2d0413026De5545864a1b6d6:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x4110E56ED25e21267FBeEf79244f47ada4e2E963:0xed2b525841adfc00000:0x3E6a45b12E2A4E25fb0176c7Aa1855459E8e862b," +
"0x4110E56ED25e21267FBeEf79244f47ada4e2E963:0xa30dc89cad279d400000:0x3E6a45b12E2A4E25fb0176c7Aa1855459E8e862b," +
"0xdb33217fE3F74bD41c550B06B624E23ab7f55d05:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0xE2FA892CC5CC268a0cC1d924EC907C796351C645:0x5ca4ec2a79a7f67000000:0x4d0A8127D3120684CC70eC12e6E8F44eE990b5aC," +
"0xE2FA892CC5CC268a0cC1d924EC907C796351C645:0xa30dc89cad279d400000:0x4d0A8127D3120684CC70eC12e6E8F44eE990b5aC," +
"0x52EAE6D396E82358D703BEDeC2ab11E723127230:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x31534d5C7b1eabb73425c2361661b878F4322f9D:0xed2b525841adfc00000:0x2DbdaCc91fd967E2A5C3F04D321752d99a7741C8," +
"0x31534d5C7b1eabb73425c2361661b878F4322f9D:0xa30dc89cad279d400000:0x2DbdaCc91fd967E2A5C3F04D321752d99a7741C8," +
"0xbbaE84E9879F908700c6ef5D15e928Abfb556a21:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x20cb28AE861c322A9A86b4F9e36Ad6977930fA05:0x5ca4ec2a79a7f67000000:0x36c1550F16c43B5Dd85f1379E708d89DA9789d9b," +
"0x20cb28AE861c322A9A86b4F9e36Ad6977930fA05:0xa30dc89cad279d400000:0x36c1550F16c43B5Dd85f1379E708d89DA9789d9b," +
"0xFfAc4cd934f026dcAF0f9d9EEDDcD9af85D8943e:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0xc067825f4B7a53Bb9f2Daf72fF22C8EE39736afF:0xed2b525841adfc00000:0xbad3F0edd751B3b8DeF4AaDDbcF5533eC93452C2," +
"0xc067825f4B7a53Bb9f2Daf72fF22C8EE39736afF:0xa30dc89cad279d400000:0xbad3F0edd751B3b8DeF4AaDDbcF5533eC93452C2," +
"0x7bf72621Dd7C4Fe4AF77632e3177c08F53fdAF09:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000"

const devnetValidatorData_v2 = "" +
"0x091DBBa95B26793515cc9aCB9bEb5124c479f27F:0x5ca4ec2a79a7f67000000:0x8520dc57A2800e417696bdF93553E63bCF31e597," +
"0x091DBBa95B26793515cc9aCB9bEb5124c479f27F:0x108b2a2c28029094000000:0x8520dc57A2800e417696bdF93553E63bCF31e597," +
"0x107837Ea83f8f06533DDd3fC39451Cd0AA8DA8BD:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x612DFa56DcA1F581Ed34b9c60Da86f1268Ab6349:0xed2b525841adfc00000:0x66f9e46b49EDDc40F0dA18D67C07ae755b3643CE," +
"0x612DFa56DcA1F581Ed34b9c60Da86f1268Ab6349:0xa30dc89cad279d400000:0x66f9e46b49EDDc40F0dA18D67C07ae755b3643CE," +
"0x84d84e6073A06B6e784241a9B13aA824AB455326:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x9e4d5C72569465270232ed7Af71981Ee82d08dBF:0x5ca4ec2a79a7f67000000:0x96f2A9f08c92c174700A0bdb452EA737633382A0," +
"0x9e4d5C72569465270232ed7Af71981Ee82d08dBF:0xa30dc89cad279d400000:0x96f2A9f08c92c174700A0bdb452EA737633382A0," +
"0xa270bBDFf450EbbC2d0413026De5545864a1b6d6:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x4110E56ED25e21267FBeEf79244f47ada4e2E963:0xed2b525841adfc00000:0x3E6a45b12E2A4E25fb0176c7Aa1855459E8e862b," +
"0x4110E56ED25e21267FBeEf79244f47ada4e2E963:0xa30dc89cad279d400000:0x3E6a45b12E2A4E25fb0176c7Aa1855459E8e862b," +
"0xdb33217fE3F74bD41c550B06B624E23ab7f55d05:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0xE2FA892CC5CC268a0cC1d924EC907C796351C645:0x5ca4ec2a79a7f67000000:0x4d0A8127D3120684CC70eC12e6E8F44eE990b5aC," +
"0xE2FA892CC5CC268a0cC1d924EC907C796351C645:0xa30dc89cad279d400000:0x4d0A8127D3120684CC70eC12e6E8F44eE990b5aC," +
"0x52EAE6D396E82358D703BEDeC2ab11E723127230:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x31534d5C7b1eabb73425c2361661b878F4322f9D:0xed2b525841adfc00000:0x2DbdaCc91fd967E2A5C3F04D321752d99a7741C8," +
"0x31534d5C7b1eabb73425c2361661b878F4322f9D:0xa30dc89cad279d400000:0x2DbdaCc91fd967E2A5C3F04D321752d99a7741C8," +
"0xbbaE84E9879F908700c6ef5D15e928Abfb556a21:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0x20cb28AE861c322A9A86b4F9e36Ad6977930fA05:0x5ca4ec2a79a7f67000000:0x36c1550F16c43B5Dd85f1379E708d89DA9789d9b," +
"0x20cb28AE861c322A9A86b4F9e36Ad6977930fA05:0xa30dc89cad279d400000:0x36c1550F16c43B5Dd85f1379E708d89DA9789d9b," +
"0xFfAc4cd934f026dcAF0f9d9EEDDcD9af85D8943e:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000," +
"0xc067825f4B7a53Bb9f2Daf72fF22C8EE39736afF:0xed2b525841adfc00000:0xbad3F0edd751B3b8DeF4AaDDbcF5533eC93452C2," +
"0xc067825f4B7a53Bb9f2Daf72fF22C8EE39736afF:0xa30dc89cad279d400000:0xbad3F0edd751B3b8DeF4AaDDbcF5533eC93452C2," +
"0x7bf72621Dd7C4Fe4AF77632e3177c08F53fdAF09:0xed2b525841adfc00000:0x0000000000000000000000000000000000000000"
2 changes: 1 addition & 1 deletion params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ var (

// DevnetChainConfig is the chain parameters to run a node on the wormholes developer network.
DevnetChainConfig = &ChainConfig{
ChainID: big.NewInt(51893),
ChainID: big.NewInt(51894),
HomesteadBlock: big.NewInt(0),
//DAOForkBlock: big.NewInt(1_920_000),
//DAOForkSupport: true,
Expand Down

0 comments on commit e8650fc

Please sign in to comment.