mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2025-04-09 11:31:01 +02:00
* Return must complete successfully else a nonce gap could form. * TODO: add tests for Return * closes#18
13 lines
375 B
Go
13 lines
375 B
Go
package noncestore
|
|
|
|
import "context"
|
|
|
|
// Noncestore represents a persistent distributed noncestore
|
|
type Noncestore interface {
|
|
Peek(context.Context, string) (uint64, error)
|
|
Acquire(context.Context, string) (uint64, error)
|
|
Return(context.Context, string) error
|
|
SyncNetworkNonce(context.Context, string) (uint64, error)
|
|
SetNewAccountNonce(context.Context, string) error
|
|
}
|