Versions in this module Expand all Collapse all v0 v0.0.3 Dec 24, 2025 Changes in this version + type IncentiveHook interface + CreateTransaction func(nodeID int, cycle uint64) (*transaction.Transaction, error) + ShouldCreateTransaction func(nodeID int, cycle uint64) bool + type MockIncentiveHook struct + CreateEveryNCycles uint64 + CreateProbability float64 + MaxTransactionsPerNode int + TransactionManager *transaction.TxnManager + func NewMockIncentiveHook(mgr *transaction.TxnManager) *MockIncentiveHook + func (h *MockIncentiveHook) CreateTransaction(nodeID int, cycle uint64) (*transaction.Transaction, error) + func (h *MockIncentiveHook) ResetNodeCounters() + func (h *MockIncentiveHook) SetCreateEveryNCycles(n uint64) + func (h *MockIncentiveHook) SetCreateProbability(prob float64) + func (h *MockIncentiveHook) SetMaxTransactionsPerNode(max int) + func (h *MockIncentiveHook) ShouldCreateTransaction(nodeID int, cycle uint64) bool