chainreg: satisfy chain.Interface in NoChainSource

This commit is contained in:
yyforyongyu 2024-01-23 17:46:06 +08:00
parent ff1f33eee9
commit e6f5d17548
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -4,6 +4,7 @@ import (
"errors"
"time"
"github.com/btcsuite/btcd/btcjson"
"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
@ -213,4 +214,10 @@ func (n *NoChainSource) BackEnd() string {
return noChainBackendName
}
func (n *NoChainSource) TestMempoolAccept([]*wire.MsgTx,
float64) ([]*btcjson.TestMempoolAcceptResult, error) {
return nil, nil
}
var _ chain.Interface = (*NoChainSource)(nil)