MCPcopy Create free account
hub / github.com/chain/txvm / Tx

Struct Tx

protocol/bc/tx.go:14–31  ·  view source on GitHub ↗

Tx contains the input to an instance of the txvm virtual machine, plus parsed copies of its various side effects.

Source from the content-addressed store, hash-verified

12// Tx contains the input to an instance of the txvm virtual machine,
13// plus parsed copies of its various side effects.
14type Tx struct {
15 RawTx
16
17 Finalized bool
18 ID Hash
19 Log []txvm.Tuple
20
21 // Used in protocol validation and state updates
22 Contracts []Contract
23 Timeranges []Timerange
24 Nonces []Nonce
25 Anchor []byte
26
27 Inputs []Input
28 Issuances []Issuance
29 Outputs []Output
30 Retirements []Retirement
31}
32
33// CommitmentsTx wraps a Tx with its nonce and witness commitments.
34type CommitmentsTx struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected