WithOutputIDs is an option for NewChain that prepopulates the blockchain's utxo set with the given hashes.
(outputIDs ...bc.Hash)
| 33 | // WithOutputIDs is an option for NewChain that prepopulates the |
| 34 | // blockchain's utxo set with the given hashes. |
| 35 | func WithOutputIDs(outputIDs ...bc.Hash) Option { |
| 36 | return func(_ testing.TB, conf *config) { |
| 37 | for _, oid := range outputIDs { |
| 38 | conf.initialState.ContractsTree.Insert(oid.Bytes()) |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // WithBlockSigners is an option for NewChain that configures the |
| 44 | // NextPredicate for blocks in the new chain. It generates a suitable |