File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,19 @@ func testRfqAssetBuyHtlcIntercept(t *harnessTest) {
228228 expectedAssetID := mintedAssetId
229229 require .Equal (t .t , expectedAssetID , actualAssetID )
230230
231+ // Restart Bob's tapd to ensure the accepted quote policy survives a
232+ // restart and is restored.
233+ require .NoError (t .t , ts .BobTapd .stop (false ))
234+ require .NoError (t .t , ts .BobTapd .start (false ))
235+
236+ // Carol should still see the accepted quote after Bob's restart.
237+ acceptedQuotes , err = ts .CarolTapd .QueryPeerAcceptedQuotes (
238+ ctxt , & rfqrpc.QueryPeerAcceptedQuotesRequest {},
239+ )
240+ require .NoError (t .t , err )
241+ require .Len (t .t , acceptedQuotes .BuyQuotes , 1 )
242+ acceptedQuote = acceptedQuotes .BuyQuotes [0 ]
243+
231244 // Carol will now use the accepted quote (received from Bob) to create
232245 // a lightning invoice which will be given to and settled by Alice.
233246 //
You can’t perform that action at this time.
0 commit comments