parent
0289d69366
commit
00a83c5606
@ -0,0 +1,27 @@ |
|||||||
|
package beacon |
||||||
|
|
||||||
|
import ( |
||||||
|
"github.com/harmony-one/harmony/consensus" |
||||||
|
"github.com/harmony-one/harmony/node" |
||||||
|
) |
||||||
|
|
||||||
|
//References
|
||||||
|
// https://medium.com/prysmatic-labs/ethereum-2-0-development-update-20-prysmatic-labs-e42724a2ba44
|
||||||
|
//
|
||||||
|
const ( |
||||||
|
NumShards = 10 |
||||||
|
BeaconChainShardNum = 0 |
||||||
|
DepositContractAddress = 1234567 //Currently a regular address, later to be replaced by a smart contract address.
|
||||||
|
MinDepositAmount = 10 //Minimum Threshold for depositing
|
||||||
|
) |
||||||
|
|
||||||
|
type BeaconchainConsensus struct { |
||||||
|
beaconconsensus *consensus.consensus //beaconchain consensus piggybacks on
|
||||||
|
waiting_nodes *node.Node[] |
||||||
|
active_nodes *node.Node[] |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
func (bc *BeaconchainConsensus) UpdateWaitingNodes() { |
||||||
|
//Interacts with blockchain/smartcontract to add new nodes
|
||||||
|
} |
Loading…
Reference in new issue