<p>As described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="850397831" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/5393" data-hovercard-type="issue" data-hovercard-url="/bisq-network/bisq/issues/5393/hovercard" href="https://github.com/bisq-network/bisq/issues/5393">#5393</a>, having a DAO state that is in conflict can cause issues and unnecessary mediation cases.</p>
<p>Unfortunately, users are not notified when their DAO state is in conflict with seednodes, it is only shown by checking DAO -> Network Monitor -> Dao State.</p>
<p>This PR attempts to rectify that by checking the DAO state whenever Bisq has completed the block sync.  If the DAO is reporting a conflict then a popup will be shown to the user asking them to resync .  To avoid annoyance, this popup will only be shown at most once per session (and then only if a resync is needed).</p>
<p>This PR only checks the overall DAO state, not the voting or proposals state.  This is intentional, since proposal and voting states are only applicable to a small subset of users whereas the goal of this PR is to prevent problems in trading.</p>
<h3>Screenshot</h3>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/47253594/120564579-dccd7b80-c3d0-11eb-9274-4ae47d251e82.png"><img src="https://user-images.githubusercontent.com/47253594/120564579-dccd7b80-c3d0-11eb-9274-4ae47d251e82.png" alt="image" style="max-width:100%;"></a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bisq/pull/5552'>https://github.com/bisq-network/bisq/pull/5552</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>warn user when DAO needs resync</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/5552/files#diff-fe74f39774ad561698cd6c1c19367383e8b9d58b6981d5d5eb2e0318e8f7ea3c">core/src/main/java/bisq/core/dao/DaoFacade.java</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/5552/files#diff-a6cc570e0f56a36136791beae8f497706216230467708be9343344cd953e5f08">core/src/main/resources/i18n/displayStrings.properties</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/5552/files#diff-6e22f0429ec55567e38489abe10eedf4616b989d66e76203ef3b52dff788ff6c">desktop/src/main/java/bisq/desktop/main/presentation/DaoPresentation.java</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/5552/files#diff-bf36680f758ff209f343b0f2d75cbcadf8140bfe660d0c0336fc42c8c69119fe">desktop/src/main/java/bisq/desktop/util/GUIUtil.java</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/5552.patch'>https://github.com/bisq-network/bisq/pull/5552.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/5552.diff'>https://github.com/bisq-network/bisq/pull/5552.diff</a></li>
</ul>

<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/pull/5552">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNXU63SAY4V7PPNPSQ3TQ26ERANCNFSM457VOMPA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNRVZLTW5H47CVOR74LTQ26ERA5CNFSM457VOMPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NR46GYQ.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/pull/5552",
"url": "https://github.com/bisq-network/bisq/pull/5552",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>