-
Notifications
You must be signed in to change notification settings - Fork 406
ChainInterface is easy to misuse #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Milestone
Comments
TheBlueMatt
added a commit
to TheBlueMatt/rust-lightning
that referenced
this issue
Dec 11, 2018
This is somewhat awkward, but prevents a slew of duplicate events. Really this should probably be more explicit, but would be easy to move that along with a slew of block_connected-event-processing refactors, see-also GH lightningdevkit#80.
TheBlueMatt
added a commit
to TheBlueMatt/rust-lightning
that referenced
this issue
Dec 11, 2018
This is somewhat awkward, but prevents a slew of duplicate events. Really this should probably be more explicit, but would be easy to move that along with a slew of block_connected-event-processing refactors, see-also GH lightningdevkit#80. This affects full_stack_target only on accident cause the demo test didn't continue onwards with another block connection.
TheBlueMatt
added a commit
to TheBlueMatt/rust-lightning
that referenced
this issue
Dec 11, 2018
This is somewhat awkward, but prevents a slew of duplicate events. Really this should probably be more explicit, but would be easy to move that along with a slew of block_connected-event-processing refactors, see-also GH lightningdevkit#80. This affects full_stack_target only on accident cause the demo test didn't continue onwards with another block connection.
TheBlueMatt
added a commit
to TheBlueMatt/rust-lightning
that referenced
this issue
Dec 12, 2018
This is somewhat awkward, but prevents a slew of duplicate events. Really this should probably be more explicit, but would be easy to move that along with a slew of block_connected-event-processing refactors, see-also GH lightningdevkit#80. This affects full_stack_target only on accident cause the demo test didn't continue onwards with another block connection.
TheBlueMatt
added a commit
to TheBlueMatt/rust-lightning
that referenced
this issue
Dec 13, 2018
This is somewhat awkward, but prevents a slew of duplicate events. Really this should probably be more explicit, but would be easy to move that along with a slew of block_connected-event-processing refactors, see-also GH lightningdevkit#80. This affects full_stack_target only on accident cause the demo test didn't continue onwards with another block connection.
TheBlueMatt
added a commit
to TheBlueMatt/rust-lightning
that referenced
this issue
Dec 13, 2018
This is somewhat awkward, but prevents a slew of duplicate events. Really this should probably be more explicit, but would be easy to move that along with a slew of block_connected-event-processing refactors, see-also GH lightningdevkit#80. This affects full_stack_target only on accident cause the demo test didn't continue onwards with another block connection.
TheBlueMatt
added a commit
to TheBlueMatt/rust-lightning
that referenced
this issue
Dec 13, 2018
This is somewhat awkward, but prevents a slew of duplicate events. Really this should probably be more explicit, but would be easy to move that along with a slew of block_connected-event-processing refactors, see-also GH lightningdevkit#80. This affects full_stack_target only on accident cause the demo test didn't continue onwards with another block connection.
TheBlueMatt
added a commit
to TheBlueMatt/rust-lightning
that referenced
this issue
Dec 14, 2018
This is somewhat awkward, but prevents a slew of duplicate events. Really this should probably be more explicit, but would be easy to move that along with a slew of block_connected-event-processing refactors, see-also GH lightningdevkit#80. This affects full_stack_target only on accident cause the demo test didn't continue onwards with another block connection.
What was insufficient with |
We don't have a ChainWatchInterfaceUtil anymore, and this interface is much much harder to mis-use now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In writing https://github.com/TheBlueMatt/rust-lightning-bitcoinrpc I almost misused ChainWatchInterface, almost calling ChannelManager::block_connected and PeerHandler::block_connected instead of only calling ChainWatchInterfaceUtil::block_connected (which will call the others for you).
I'm not actually sure what a better interface looks like. I played around a bit with making some things pub(crate) in chaininterface but couldn't come up with anything I actually liked, sadly.
The text was updated successfully, but these errors were encountered: