Skip to content

Commit

Permalink
Merge pull request #509 from blinklabs-io/fix/wire-up-local-tx-monito…
Browse files Browse the repository at this point in the history
…r-config

fix: wire up missing localtxmonitor config
  • Loading branch information
wolf31o2 authored Mar 3, 2024
2 parents 41ffde6 + 7ecadd7 commit d2a27b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions connection_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/blinklabs-io/gouroboros/protocol/chainsync"
"github.com/blinklabs-io/gouroboros/protocol/keepalive"
"github.com/blinklabs-io/gouroboros/protocol/localstatequery"
"github.com/blinklabs-io/gouroboros/protocol/localtxmonitor"
"github.com/blinklabs-io/gouroboros/protocol/localtxsubmission"
"github.com/blinklabs-io/gouroboros/protocol/peersharing"
"github.com/blinklabs-io/gouroboros/protocol/txsubmission"
Expand Down Expand Up @@ -133,6 +134,15 @@ func WithLocalStateQueryConfig(
}
}

// WithLocalTxMonitorConfig specifies LocalTxMonitor protocol config
func WithLocalTxMonitorConfig(
cfg localtxmonitor.Config,
) ConnectionOptionFunc {
return func(c *Connection) {
c.localTxMonitorConfig = &cfg
}
}

// WithLocalTxSubmissionConfig specifies LocalTxSubmission protocol config
func WithLocalTxSubmissionConfig(
cfg localtxsubmission.Config,
Expand Down

0 comments on commit d2a27b2

Please sign in to comment.