Skip to content

Commit 1171731

Browse files
committed
WIP: tapcfg: setup supply syncer in genServerConfig
1 parent 953669b commit 1171731

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tapcfg/server.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,16 @@ func genServerConfig(cfg *Config, cfgLogger btclog.Logger,
609609
)
610610
supplyTreeStore := tapdb.NewSupplyTreeStore(supplyTreeDb)
611611

612+
// Construct the supply syncer database backend.
613+
supplySyncerDb := tapdb.NewTransactionExecutor(
614+
db, func(tx *sql.Tx) tapdb.BaseUniverseStore {
615+
return db.WithTx(tx)
616+
},
617+
)
618+
supplySyncerStore := tapdb.NewSupplySyncerStore(supplySyncerDb)
619+
supplySyncerStore = supplySyncerStore
620+
// TODO(ffranr): When init SupplySyncer pass in supplySyncerStore.
621+
612622
// Create the supply commitment state machine manager, which is used to
613623
// manage the supply commitment state machines for each asset group.
614624
supplyCommitManager := supplycommit.NewMultiStateMachineManager(

0 commit comments

Comments
 (0)