Skip to content

Commit

Permalink
multi: remove config param AcceptRemoteUniverseProofs
Browse files Browse the repository at this point in the history
We can remove this parameter and use the macaroon whitelist to control
this behaviour.
  • Loading branch information
ffranr committed Sep 19, 2023
1 parent efa6c4a commit aff1e21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 0 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ type Config struct {
// connecting to itself as a federation member.
RuntimeID int64

AcceptRemoteUniverseProofs bool

// TODO(roasbeef): use the Taproot Asset chain param wrapper here?
ChainParams chaincfg.Params

Expand Down
4 changes: 0 additions & 4 deletions rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2921,10 +2921,6 @@ func (r *rpcServer) InsertProof(ctx context.Context,
return nil, fmt.Errorf("key cannot be nil")
}

if !r.cfg.AcceptRemoteUniverseProofs {
return nil, fmt.Errorf("remote proofs not accepted")
}

universeID, err := unmarshalUniID(req.Key.Id)
if err != nil {
return nil, err
Expand Down
11 changes: 5 additions & 6 deletions tapcfg/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,11 @@ func genServerConfig(cfg *Config, cfgLogger btclog.Logger,
})

return &tap.Config{
DebugLevel: cfg.DebugLevel,
RuntimeID: runtimeID,
AcceptRemoteUniverseProofs: cfg.Universe.AcceptRemoteProofs,
Lnd: lndServices,
ChainParams: cfg.ActiveNetParams,
ReOrgWatcher: reOrgWatcher,
DebugLevel: cfg.DebugLevel,
RuntimeID: runtimeID,
Lnd: lndServices,
ChainParams: cfg.ActiveNetParams,
ReOrgWatcher: reOrgWatcher,
AssetMinter: tapgarden.NewChainPlanter(tapgarden.PlanterConfig{
GardenKit: tapgarden.GardenKit{
Wallet: walletAnchor,
Expand Down

0 comments on commit aff1e21

Please sign in to comment.