<p></p>
<h3>Description</h3>
<p>After creating an offer then restoring a wallet from seed, the reserve balance is restored as zero and added to the available balance, but the restored offer remains open.</p>
<h4>Version</h4>
<p>Found during v1.3.8 release testing.</p>
<h3>Steps to reproduce</h3>
<p>This is reproduceable in testing mode (regtest/dao):</p>
<ol>
<li>
<p>Start an arbritaror instance, and register a mediator & refund agent.</p>
</li>
<li>
<p>Start Bisq, encrypt the wallet, save the seed, then forget the password.</p>
</li>
<li>
<p>Create an offer to buy BTC, and verify the reserved balance > 0.</p>
</li>
</ol>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/36207203/92409934-c41d8700-f118-11ea-81ad-c1bef35459c6.png"><img src="https://user-images.githubusercontent.com/36207203/92409934-c41d8700-f118-11ea-81ad-c1bef35459c6.png" alt="1" style="max-width:100%;"></a></p>
<ol start="4">
<li>
<p>Generate a BTC block</p>
</li>
<li>
<p>Shutdown Bisq.</p>
</li>
<li>
<p>Start Bisq and restore wallet from seed saved in step 2.</p>
</li>
<li>
<p>Start Bisq again with the unencrypted wallet.  See the open offer created in step 3, and notice the reserved balance has been added to the available balance, leaving the reserved balance = 0.</p>
</li>
</ol>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/36207203/92409945-ce3f8580-f118-11ea-9991-ea339a9f497f.png"><img src="https://user-images.githubusercontent.com/36207203/92409945-ce3f8580-f118-11ea-9991-ea339a9f497f.png" alt="2" style="max-width:100%;"></a></p>
<h3>Expected behaviour</h3>
<p>The reserved & actual balances, and open offer, should be restored unchanged.</p>
<h3>Actual behaviour</h3>
<p>The reserved balance was restored as 0, the old reserve balance was added to the restored available balance, and the open offer was restored.</p>
<h4>Device or machine</h4>
<p>Ubuntu 20</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/4499">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNUEURXWREVFNLHJKXLSEUNHHANCNFSM4Q6V4IIQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNQV66YP5MMAPDJE6YDSEUNHHA5CNFSM4Q6V4II2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KLRVGPQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/4499",
"url": "https://github.com/bisq-network/bisq/issues/4499",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>