// PrepareDebit returns an accounting Action for the later debit to be executed on and to implement shadowing a possibly credited part of reserve on the other side.
// PrepareDebit returns an accounting Action for the later debit to be executed on and to implement shadowing a possibly credited part of reserve on the other side.
PrepareDebit(peerswarm.Address,priceuint64)Action
PrepareDebit(peerswarm.Address,priceuint64)Action
// Balance returns the current balance for the given peer.
// Balance returns the current balance for the given peer.
t.Fatalf("originated balance for peer %v not as expected after booking %d. got %d, wanted %d",booking.peer.String(),i,originatedBalance,booking.originatedBalance)
}
}
}
// TestAccountingAdd_persistentBalances tests that balances are actually persisted
// TestAccountingAdd_persistentBalances tests that balances are actually persisted
// It creates an accounting instance, does some accounting
// It creates an accounting instance, does some accounting
// Then it creates a new accounting instance with the same store and verifies the balances
// Then it creates a new accounting instance with the same store and verifies the balances