Documentation
¶
Index ¶
- Constants
- func CreateBlock(t *testing.T, txs []*types.TransactionRecord, ir *types.InputRecord, ...) *types.Block
- func CreateTxRecordProof(t *testing.T, txRecord *types.TransactionRecord, signer abcrypto.Signer, ...) *types.TxRecordProof
- func DefaultPDR() *types.PartitionDescriptionRecord
- type Option
- type Options
Constants ¶
View Source
const (
DefaultRoundNumber = 1
)
Variables ¶
This section is empty.
Functions ¶
func CreateBlock ¶
func CreateBlock(t *testing.T, txs []*types.TransactionRecord, ir *types.InputRecord, pdr *types.PartitionDescriptionRecord, signer abcrypto.Signer) *types.Block
func CreateTxRecordProof ¶
func CreateTxRecordProof(t *testing.T, txRecord *types.TransactionRecord, signer abcrypto.Signer, opts ...Option) *types.TxRecordProof
func DefaultPDR ¶
func DefaultPDR() *types.PartitionDescriptionRecord
Types ¶
type Option ¶
type Option func(*Options)
func WithPartitionID ¶
func WithPartitionID(partitionID types.PartitionID) Option
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func DefaultOptions ¶
func DefaultOptions() *Options
Click to show internal directories.
Click to hide internal directories.