MCPcopy Create free account
hub / github.com/akash-network/node / Before

Method Before

util/partialord/partialord.go:45–49  ·  view source on GitHub ↗

Before marks that A should come before B

(a string, b string)

Source from the content-addressed store, hash-verified

43
44// Before marks that A should come before B
45func (ord *PartialOrdering) Before(a string, b string) {
46 // Set that B depends on A / an edge from A -> B
47 err := ord.dag.AddEdge(a, b)
48 handleDAGErr(err)
49}
50
51// FirstElements Sets elems to be the first elements in the ordering.
52// So if were making an ordering over {A, B, C, D, E}, and elems provided is {D, B, A}

Callers 12

orderBeginBlockersFunction · 0.95
TestAPIFunction · 0.95
EndBlockerMethod · 0.80
PricesMethod · 0.80
BeginBlockerMethod · 0.80
MaintenanceStatusFunction · 0.80
WaitForProposalToPassFunction · 0.80

Calls 2

handleDAGErrFunction · 0.85
AddEdgeMethod · 0.80

Tested by 3

TestAPIFunction · 0.76
WaitForProposalToPassFunction · 0.64