Skip to content

Commit d2a27b2

Browse files
authored
Merge pull request #509 from blinklabs-io/fix/wire-up-local-tx-monitor-config
fix: wire up missing localtxmonitor config
2 parents 41ffde6 + 7ecadd7 commit d2a27b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

connection_options.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"github.com/blinklabs-io/gouroboros/protocol/chainsync"
2222
"github.com/blinklabs-io/gouroboros/protocol/keepalive"
2323
"github.com/blinklabs-io/gouroboros/protocol/localstatequery"
24+
"github.com/blinklabs-io/gouroboros/protocol/localtxmonitor"
2425
"github.com/blinklabs-io/gouroboros/protocol/localtxsubmission"
2526
"github.com/blinklabs-io/gouroboros/protocol/peersharing"
2627
"github.com/blinklabs-io/gouroboros/protocol/txsubmission"
@@ -133,6 +134,15 @@ func WithLocalStateQueryConfig(
133134
}
134135
}
135136

137+
// WithLocalTxMonitorConfig specifies LocalTxMonitor protocol config
138+
func WithLocalTxMonitorConfig(
139+
cfg localtxmonitor.Config,
140+
) ConnectionOptionFunc {
141+
return func(c *Connection) {
142+
c.localTxMonitorConfig = &cfg
143+
}
144+
}
145+
136146
// WithLocalTxSubmissionConfig specifies LocalTxSubmission protocol config
137147
func WithLocalTxSubmissionConfig(
138148
cfg localtxsubmission.Config,

0 commit comments

Comments
 (0)