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

Function txSpend

protocol/validation/validation_test.go:575–582  ·  view source on GitHub ↗
(t *testing.T, tx *bc.Tx, index int)

Source from the content-addressed store, hash-verified

573}
574
575func txSpend(t *testing.T, tx *bc.Tx, index int) *bc.Spend {
576 id := tx.InputIDs[index]
577 res, err := tx.Spend(id)
578 if err != nil {
579 t.Fatal(err)
580 }
581 return res
582}

Callers 1

TestTxValidationFunction · 0.85

Calls 1

SpendMethod · 0.80

Tested by

no test coverage detected