adding unadded files

pull/955/head
ak 6 years ago
parent d49e645012
commit b16c686546
  1. 2
      core/genesis_util.go
  2. 2
      internal/hmyapi/blockchain.go

@ -54,7 +54,7 @@ func StringToBigInt(s string, base int) *big.Int {
func convertToGenesisItems(gc genesisConfig) []GenesisItem { func convertToGenesisItems(gc genesisConfig) []GenesisItem {
gi := []GenesisItem{} gi := []GenesisItem{}
for k, v := range gc { for k, v := range gc {
gi = append(gi, GenesisItem{StringToBigInt(k, 16), StringToBigInt(v["wei"], 10)}) gi = append(gi, GenesisItem{StringToBigInt(k, 16), StringToBigInt(v["nano"], 10)})
} }
sort.Slice(gi, func(i, j int) bool { sort.Slice(gi, func(i, j int) bool {
return gi[i].Addr.Cmp(gi[j].Addr) == -1 return gi[i].Addr.Cmp(gi[j].Addr) == -1

@ -68,7 +68,7 @@ func (s *PublicBlockChainAPI) GetStorageAt(ctx context.Context, address common.A
return res[:], state.Error() return res[:], state.Error()
} }
// GetBalance returns the amount of wei for the given address in the state of the // GetBalance returns the amount of Nano for the given address in the state of the
// given block number. The rpc.LatestBlockNumber and rpc.PendingBlockNumber meta // given block number. The rpc.LatestBlockNumber and rpc.PendingBlockNumber meta
// block numbers are also allowed. // block numbers are also allowed.
func (s *PublicBlockChainAPI) GetBalance(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Big, error) { func (s *PublicBlockChainAPI) GetBalance(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Big, error) {

Loading…
Cancel
Save