nip60: fixes, actual Cashu stuff and a wallet.Receive() method.
This commit is contained in:
10
nip60/lib.go
10
nip60/lib.go
@@ -17,7 +17,15 @@ type WalletStash struct {
|
||||
pendingHistory map[string][]HistoryEntry // history entries not yet assigned to a wallet
|
||||
}
|
||||
|
||||
func LoadWallets(
|
||||
func NewStash() *WalletStash {
|
||||
return &WalletStash{
|
||||
wallets: make(map[string]*Wallet, 1),
|
||||
pendingTokens: make(map[string][]Token),
|
||||
pendingHistory: make(map[string][]HistoryEntry),
|
||||
}
|
||||
}
|
||||
|
||||
func LoadStash(
|
||||
ctx context.Context,
|
||||
kr nostr.Keyer,
|
||||
events <-chan *nostr.Event,
|
||||
|
||||
Reference in New Issue
Block a user