Exchange

type Exchange struct {
    db             *serodb.LDBDatabase
    txPool         *core.TxPool
    accountManager *accounts.Manager

    accounts    sync.Map
    pkrAccounts sync.Map

    sri light.SRI
    sli light.SLI

    usedFlag sync.Map
    numbers  sync.Map

    feed    event.Feed
    updater event.Subscription        // Wallet update subscriptions for all backends
    update  chan accounts.WalletEvent // Subscription sink for backend wallet changes
    quit    chan chan error
    lock    sync.RWMutex
}

Last updated

Was this helpful?