mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-21 07:50:44 -04:00
arbitrator deletes signed offer when key image confirmed spent
This commit is contained in:
parent
60dc4901e4
commit
5feb487039
4 changed files with 112 additions and 30 deletions
|
@ -1,6 +1,7 @@
|
|||
package bisq.core.offer;
|
||||
|
||||
import bisq.core.api.CoreContext;
|
||||
import bisq.core.api.CoreMoneroConnectionsService;
|
||||
import bisq.core.trade.TradableList;
|
||||
|
||||
import bisq.network.p2p.P2PService;
|
||||
|
@ -52,6 +53,7 @@ public class OpenOfferManagerTest {
|
|||
public void testStartEditOfferForActiveOffer() {
|
||||
P2PService p2PService = mock(P2PService.class);
|
||||
OfferBookService offerBookService = mock(OfferBookService.class);
|
||||
CoreMoneroConnectionsService connectionsService = mock(CoreMoneroConnectionsService.class);
|
||||
|
||||
when(p2PService.getPeerManager()).thenReturn(mock(PeerManager.class));
|
||||
|
||||
|
@ -59,7 +61,7 @@ public class OpenOfferManagerTest {
|
|||
null,
|
||||
null,
|
||||
p2PService,
|
||||
null,
|
||||
connectionsService,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
|
@ -100,13 +102,14 @@ public class OpenOfferManagerTest {
|
|||
public void testStartEditOfferForDeactivatedOffer() {
|
||||
P2PService p2PService = mock(P2PService.class);
|
||||
OfferBookService offerBookService = mock(OfferBookService.class);
|
||||
CoreMoneroConnectionsService connectionsService = mock(CoreMoneroConnectionsService.class);
|
||||
when(p2PService.getPeerManager()).thenReturn(mock(PeerManager.class));
|
||||
|
||||
final OpenOfferManager manager = new OpenOfferManager(coreContext,
|
||||
null,
|
||||
null,
|
||||
p2PService,
|
||||
null,
|
||||
connectionsService,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
|
@ -139,6 +142,7 @@ public class OpenOfferManagerTest {
|
|||
public void testStartEditOfferForOfferThatIsCurrentlyEdited() {
|
||||
P2PService p2PService = mock(P2PService.class);
|
||||
OfferBookService offerBookService = mock(OfferBookService.class);
|
||||
CoreMoneroConnectionsService connectionsService = mock(CoreMoneroConnectionsService.class);
|
||||
|
||||
when(p2PService.getPeerManager()).thenReturn(mock(PeerManager.class));
|
||||
|
||||
|
@ -147,7 +151,7 @@ public class OpenOfferManagerTest {
|
|||
null,
|
||||
null,
|
||||
p2PService,
|
||||
null,
|
||||
connectionsService,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue