Skip to content

Commit

Permalink
Ensure dcrwallet satisfies the Wallet interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock committed Apr 21, 2023
1 parent f46a5db commit 263afea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/autoclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ type Policy struct {
FeeAcct uint32 // to pay fees from, if inputs are not provided to Process
}

// Ensure dcrwallet satisfies the Wallet interface.
var _ Wallet = (*wallet.Wallet)(nil)

type Wallet interface {
Spender(ctx context.Context, out *wire.OutPoint) (*wire.MsgTx, uint32, error)
MainChainTip(ctx context.Context) (hash chainhash.Hash, height int32)
Expand Down

0 comments on commit 263afea

Please sign in to comment.