File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
47
47
### Improvements
48
48
49
49
* [ #110 ] ( https://github.com/babylonlabs-io/covenant-emulator/pull/110 ) bump babylon to v1.0.0-rc.7
50
+ * [ #113 ] ( https://github.com/babylonlabs-io/covenant-emulator/pull/113 ) chore: enforcing keyring-backend test
50
51
51
52
### Bug Fixes
52
53
Original file line number Diff line number Diff line change 8
8
"github.com/babylonlabs-io/covenant-emulator/log"
9
9
"github.com/babylonlabs-io/covenant-emulator/remotesigner"
10
10
"github.com/babylonlabs-io/covenant-emulator/util"
11
+ "github.com/cosmos/cosmos-sdk/crypto/keyring"
11
12
12
13
"github.com/lightningnetwork/lnd/signal"
13
14
"github.com/urfave/cli"
@@ -43,6 +44,10 @@ func start(ctx *cli.Context) error {
43
44
return fmt .Errorf ("failed to load config at %s: %w" , homePath , err )
44
45
}
45
46
47
+ if cfg .BabylonConfig .KeyringBackend != keyring .BackendTest {
48
+ return fmt .Errorf ("the keyring backend in config must be `test` for automatic signing, got %s" , cfg .BabylonConfig .KeyringBackend )
49
+ }
50
+
46
51
logger , err := log .NewRootLoggerWithFile (covcfg .LogFile (homePath ), cfg .LogLevel )
47
52
if err != nil {
48
53
return fmt .Errorf ("failed to load the logger: %w" , err )
You can’t perform that action at this time.
0 commit comments