mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-13 00:57:24 +02:00
signals: remove boost::signals2 mentions in linters and docs
The documented example is no longer relevant, so remove it rather than updating it to mention btcsignals.
This commit is contained in:
@@ -1411,9 +1411,9 @@ communication:
|
||||
using TipChangedFn = std::function<void(int block_height, int64_t block_time)>;
|
||||
virtual std::unique_ptr<interfaces::Handler> handleTipChanged(TipChangedFn fn) = 0;
|
||||
|
||||
// Bad: returns boost connection specific to local process
|
||||
// Bad: returns btcsignals connection specific to local process
|
||||
using TipChangedFn = std::function<void(int block_height, int64_t block_time)>;
|
||||
virtual boost::signals2::scoped_connection connectTipChanged(TipChangedFn fn) = 0;
|
||||
virtual btcsignals::scoped_connection connectTipChanged(TipChangedFn fn) = 0;
|
||||
```
|
||||
|
||||
- Interface methods should not be overloaded.
|
||||
|
||||
Reference in New Issue
Block a user