MCPcopy Create free account
hub / github.com/chain/Core / Issuance

Method Issuance

protocol/bc/tx.go:73–83  ·  view source on GitHub ↗
(id Hash)

Source from the content-addressed store, hash-verified

71}
72
73func (tx *Tx) Issuance(id Hash) (*Issuance, error) {
74 e, ok := tx.Entries[id]
75 if !ok || e == nil {
76 return nil, errors.Wrapf(ErrMissingEntry, "id %x", id.Bytes())
77 }
78 iss, ok := e.(*Issuance)
79 if !ok {
80 return nil, errors.Wrapf(ErrEntryType, "entry %x has unexpected type %T", id.Bytes(), e)
81 }
82 return iss, nil
83}
84
85func (tx *Tx) Nonce(id Hash) (*Nonce, error) {
86 e, ok := tx.Entries[id]

Callers 2

checkIssuanceWindowMethod · 0.80
txIssuanceFunction · 0.80

Calls 1

BytesMethod · 0.45

Tested by 1

txIssuanceFunction · 0.64