ceremonyclient/node/protobufs/node.go
2024-11-06 20:34:08 -06:00

14 lines
253 B
Go

package protobufs
import "math/big"
func (t *TokenRequest) Priority() *big.Int {
switch p := t.Request.(type) {
case *TokenRequest_Mint:
if len(p.Mint.Proofs) >= 3 {
return new(big.Int).SetBytes(p.Mint.Proofs[2])
}
}
return big.NewInt(0)
}