Uses of Class
convex.core.Order
Packages that use Order
-
Uses of Order in convex.core
Methods in convex.core that return OrderModifier and TypeMethodDescriptionOrder.append
(SignedData<Block> block) Append a new block of transactions in this Orderstatic Order
Order.create()
Create an empty Orderstatic Order
Order.create
(long proposalPoint, long consensusPoint, SignedData<Block>... blocks) Create an Order with the given consensus positions and Blocks.Belief.getOrder
(AccountKey address) Gets the current Order for a given Address within this Belief.Peer.getOrder
(AccountKey peerKey) Gets the current chain this Peer sees for a given peer addressPeer.getPeerOrder()
Gets the current Order for this Peerstatic Order
Decode an Order from a Blob encodingOrder.updateRefs
(IRefFunction func) Order.withBlocks
(AVector<SignedData<Block>> newBlocks) Updates blocks in this Order.Order.withConsensusPoint
(int level, long newPosition) Updates this Order with a new consensus position.Order.withConsensusPoints
(long[] newPositions) Updates this Order with new consensus positios.Order.withoutConsenus()
Clears the consensus and proposal pointOrder.withTimestamp
(long newTimestamp) Updates timestamp in this Order.Methods in convex.core that return types with arguments of type OrderModifier and TypeMethodDescriptionstatic Collection<SignedData<Order>>
Belief.extractOrders
(ACell payload) Extract a collection of Orders from a Cell, suitable for Belief mergeBelief.getOrders()
Get the map of orders for this BeliefBelief.getOrdersHashMap()
Gets a new HashMap containing all OrdersMethods in convex.core with parameters of type OrderModifier and TypeMethodDescriptionboolean
Order.checkConsistent
(Order bc) Checks if another Order is consistent with this Order.static boolean
BeliefMerge.compareOrders
(Order oldOrder, Order newOrder) Checks if a new Order should replace the current order when collecting Peer ordersboolean
Order.consensusEquals
(Order b) Tests if this Order is equivalent to another in terms of consensus (timestamp ignored)static Belief
Create a Belief with a single order signed by the given key pair, using initial timestamp.Method parameters in convex.core with type arguments of type OrderModifier and TypeMethodDescriptionstatic AVector<SignedData<Block>>
BeliefMerge.computeWinningOrder
(HashMap<Order, Double> stakedOrders, long consensusPoint, double initialTotalStake) Compute the new winning Order for this Peer, including any new blocks encounteredstatic Belief
Belief.create
(HashMap<AccountKey, SignedData<Order>> orderMap) static double
BeliefMerge.prepareStakedOrders
(AMap<AccountKey, SignedData<Order>> peerOrders, HashMap<AccountKey, Double> peerStakes, HashMap<Order, Double> dest) Compute the total stake for every distinct Order seen.Belief.withOrders
(BlobMap<AccountKey, SignedData<Order>> newOrders) Updates this Belief with a new set of Chains for each peer address