fixing style issues

pull/379/head
ak 6 years ago
parent 2d4ddecada
commit 598d740e09
  1. 4
      consensus/consensus.go
  2. 2
      node/node.go

@ -109,8 +109,8 @@ type Consensus struct {
OfflinePeerList []p2p.Peer
//List of nodes related to beaconchain funcs
Waiting_Nodes []proto_node.Info
Active_Nodes []proto_node.Info
WaitingNodes []proto_node.Info
ActiveNodes []proto_node.Info
}
// BFTBlockInfo send the latest block that was in BFT consensus process as well as its consensusID to state syncing

@ -449,7 +449,7 @@ func (node *Node) AddDepositContractToPendingTransactions() {
dataEnc := common.FromHex(contractData)
// Unsigned transaction to avoid the case of transaction address.
mycontracttx, _ := types.SignTx(types.NewContractCreation(uint64(0), node.Consensus.ShardID, contractFunds, params.TxGasContractCreation*10, nil, dataEnc), types.HomesteadSigner{}, priKey)
node.ContractAddresses = append(node.ContractAddresses, crypto.CreateAddress(crypto.PubkeyToAddress(priKey.PublicKey), uint64(0)))
node.ContractAddresses = append(node.ContractAddresses, crypto.CreateAddress(contractAddress, uint64(0)))
node.addPendingTransactions(types.Transactions{mycontracttx})
}

Loading…
Cancel
Save