Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TxRecipientPID peer.ID
TxRecipientPID is the recipient in transactions generated by NewTransaction.
View Source
var TxSenderPID peer.ID
TxSenderPID is the sender in transactions generated by NewTransaction.
Functions ¶
func NewKeyPair ¶
NewKeyPair returns key pair and peer ID.
func NewRewardTransaction ¶
func NewRewardTransaction(t *testing.T, value uint64) *pb.Transaction
NewRewardTransaction creates a new reward transaction.
func NewTransaction ¶
func NewTransaction(t *testing.T, value, fee, nonce uint64) *pb.Transaction
NewTransaction creates a properly signed transaction.
func NewTransactions ¶
func NewTransactions(t *testing.T, txCount int) []*pb.Transaction
NewTransactions creates a set of random transactions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.