Documentation ¶
Index ¶
- func MockReceiptValidator() module.ReceiptValidator
- func MockSealValidator(sealsDB storage.Seals) module.SealValidator
- func RunWithBootstrapState(t testing.TB, stateRoot *pbadger.StateRoot, f func(*badger.DB, *pbadger.State))
- func RunWithFollowerProtocolState(t testing.TB, stateRoot *pbadger.StateRoot, ...)
- func RunWithFullProtocolState(t testing.TB, stateRoot *pbadger.StateRoot, ...)
- func RunWithFullProtocolStateAndConsumer(t testing.TB, stateRoot *pbadger.StateRoot, consumer protocol.Consumer, ...)
- func RunWithFullProtocolStateAndValidator(t testing.TB, stateRoot *pbadger.StateRoot, validator module.ReceiptValidator, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockReceiptValidator ¶ added in v0.14.0
func MockReceiptValidator() module.ReceiptValidator
MockReceiptValidator returns a ReceiptValidator that accepts all receipts without performing any integrity checks.
func MockSealValidator ¶ added in v0.14.0
func MockSealValidator(sealsDB storage.Seals) module.SealValidator
MockSealValidator returns a SealValidator that accepts all seals without performing any integrity checks, returns first seal in block as valid one
func RunWithBootstrapState ¶ added in v0.14.0
func RunWithFollowerProtocolState ¶ added in v0.14.0
func RunWithFullProtocolState ¶ added in v0.14.0
func RunWithFullProtocolStateAndConsumer ¶ added in v0.14.0
func RunWithFullProtocolStateAndValidator ¶ added in v0.14.0
func RunWithFullProtocolStateAndValidator(t testing.TB, stateRoot *pbadger.StateRoot, validator module.ReceiptValidator, f func(*badger.DB, *pbadger.MutableState))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.