File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 7
7
#include < util/rbf.h>
8
8
#include < version.h>
9
9
10
+ bool FuzzedSock::Wait (std::chrono::milliseconds timeout, Event requested, Event* occurred ) const
11
+ {
12
+ if (!m_fuzzed_data_provider.ConsumeBool ()) {
13
+ return false ;
14
+ }
15
+ if (occurred) *occurred = 0 ;
16
+ return true ;
17
+ }
10
18
11
19
void FillNode (FuzzedDataProvider& fuzzed_data_provider, CNode& node, bool init_version) noexcept
12
20
{
Original file line number Diff line number Diff line change @@ -738,12 +738,10 @@ class FuzzedSock : public Sock
738
738
return 0 ;
739
739
}
740
740
741
- bool Wait (std::chrono::milliseconds timeout, Event requested, Event* occurred = nullptr ) const override
742
- {
743
- return m_fuzzed_data_provider.ConsumeBool ();
744
- }
741
+ bool Wait (std::chrono::milliseconds timeout, Event requested, Event* occurred = nullptr ) const override ;
745
742
746
- bool IsConnected (std::string& errmsg) const override {
743
+ bool IsConnected (std::string& errmsg) const override
744
+ {
747
745
if (m_fuzzed_data_provider.ConsumeBool ()) {
748
746
return true ;
749
747
}
You can’t perform that action at this time.
0 commit comments