Skip to content

Commit e80895e

Browse files
Merge branch 'develop' of https://github.com/dashpay/dash into develop
2 parents dd48ca5 + 3863c88 commit e80895e

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/active/context.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ void ActiveContext::Start(CConnman& connman, PeerManager& peerman, int16_t worke
7070
cl_signer->Start();
7171
cl_signer->RegisterRecoveryInterface();
7272
is_signer->RegisterRecoveryInterface();
73+
shareman->RegisterRecoveryInterface();
7374

7475
RegisterValidationInterface(cl_signer.get());
7576
}
@@ -78,6 +79,7 @@ void ActiveContext::Stop()
7879
{
7980
UnregisterValidationInterface(cl_signer.get());
8081

82+
shareman->UnregisterRecoveryInterface();
8183
is_signer->UnregisterRecoveryInterface();
8284
cl_signer->UnregisterRecoveryInterface();
8385
cl_signer->Stop();

test/functional/p2p_instantsend.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,7 @@ def test_instantsend_after_restart(self):
139139
receiver = self.nodes[self.receiver_idx]
140140
sender_addr = sender.getnewaddress()
141141
fund_id = self.nodes[0].sendtoaddress(sender_addr, 1)
142-
self.bump_mocktime(30)
143-
self.sync_mempools()
144-
for node in self.nodes:
145-
self.wait_for_instantlock(fund_id, node)
142+
self.wait_for_instantlock(fund_id)
146143
tip = self.generate(self.nodes[0], 2)[-1]
147144
self.bump_mocktime(30)
148145
self.wait_for_chainlocked_block_all_nodes(tip)
@@ -199,10 +196,7 @@ def check_mn_peers(node=mn_node, my_hash=mn_info.proTxHash):
199196

200197
# send a TX — needs IS lock from all restarted MNs, no new blocks mined
201198
is_id = sender.sendtoaddress(receiver_addr, 0.5)
202-
self.bump_mocktime(30)
203-
self.sync_mempools()
204-
for node in self.nodes:
205-
self.wait_for_instantlock(is_id, node)
199+
self.wait_for_instantlock(is_id)
206200
self.log.info("InstantSend lock succeeded after full restart")
207201

208202
# clean up

0 commit comments

Comments
 (0)