Skip to content

Commit

Permalink
fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
sasurobert committed Jun 23, 2020
1 parent b55cd27 commit e8c7930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions genesis/process/genesisBlockCreator.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ func (gbc *genesisBlockCreator) computeDNSAddressesIfHardFork() error {
}

isForCurrentShard := func([]byte) bool {
// after hardfork we are interested only in the smart contract addresses, as they are already deployed
return true
}
initialAddresses := intermediate.GenerateInitialPublicKeys(genesis.InitialDNSAddress, isForCurrentShard)
Expand Down
2 changes: 1 addition & 1 deletion genesis/process/genesisBlockCreator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func createMockArgument(
return arg
}

func TestGenesisBlockCreator_CreateGenesisBlockAfterHardFrokShouldCreateSCResultingAddresses(t *testing.T) {
func TestGenesisBlockCreator_CreateGenesisBlockAfterHardForkShouldCreateSCResultingAddresses(t *testing.T) {
scAddressBytes, _ := hex.DecodeString("00000000000000000500761b8c4a25d3979359223208b412285f635e71300102")
initialNodesSetup := &mock.InitialNodesHandlerStub{
InitialNodesInfoCalled: func() (map[uint32][]sharding.GenesisNodeInfoHandler, map[uint32][]sharding.GenesisNodeInfoHandler) {
Expand Down

0 comments on commit e8c7930

Please sign in to comment.