<p>Adds a check that chain height is within 3 blocks of the reported height from bitcoin peers -> if not the user is prevented from taking or creating an offer.  It shows a message informing the user that Bisq is not currently synced, advising them to wait for one Bitcoin block.</p>
<p>Additionally under Settings/Network a field has been added to show the chain height of Bisq vs the Peer group.  It can be<br>
observed that Bisq chain height (from BitcoinJ) stays at 0 on startup until one new block has been published.</p>
<p><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #4727.">Fixes</span>: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="732453078" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/4727" data-hovercard-type="issue" data-hovercard-url="/bisq-network/bisq/issues/4727/hovercard" href="https://github.com/bisq-network/bisq/issues/4727">#4727</a><br>
<span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #4707.">Fixes</span>: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="729175904" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/4707" data-hovercard-type="issue" data-hovercard-url="/bisq-network/bisq/issues/4707/hovercard" href="https://github.com/bisq-network/bisq/issues/4707">#4707</a></p>
<h3>Screenshots</h3>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/47253594/98457742-13e7f100-2150-11eb-9c12-b48aa9cbdfd8.png"><img src="https://user-images.githubusercontent.com/47253594/98457742-13e7f100-2150-11eb-9c12-b48aa9cbdfd8.png" alt="Screenshot from 2020-11-07 22-59-29" style="max-width:100%;"></a></p>
<p>Network info showing chain height:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/47253594/98457746-2bbf7500-2150-11eb-8a80-7a910709f112.png"><img src="https://user-images.githubusercontent.com/47253594/98457746-2bbf7500-2150-11eb-8a80-7a910709f112.png" alt="Screenshot from 2020-11-07 22-39-37" style="max-width:100%;"></a></p>
<p>Logged upon attempting to take or create offer when not synced:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/47253594/98457800-67f2d580-2150-11eb-870f-d22c795a43c6.png"><img src="https://user-images.githubusercontent.com/47253594/98457800-67f2d580-2150-11eb-870f-d22c795a43c6.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/4764'>https://github.com/bisq-network/bisq/pull/4764</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Don't allow trade start if BitcoinJ is not fully synced</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4764/files#diff-7653fe88b27c966f6dd2f862c436fee5e5581ab2648c08888ac95afd7cd5c471">core/src/main/java/bisq/core/btc/setup/WalletsSetup.java</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4764/files#diff-a6cc570e0f56a36136791beae8f497706216230467708be9343344cd953e5f08">core/src/main/resources/i18n/displayStrings.properties</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4764/files#diff-f7a4fc19540dc68f41d27e9c6e7908c737a95e8e544b1e4f8f4d280d2267ee2f">desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookViewModel.java</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4764/files#diff-3a317ac81d9c0efe5e28d680906e7528eb09d455b344be2c4f6c9d7dad135352">desktop/src/main/java/bisq/desktop/main/settings/network/NetworkSettingsView.fxml</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4764/files#diff-3adf7298ebb71cea260499eb038891a7eba290e7ef86d7217652c792e3c9757c">desktop/src/main/java/bisq/desktop/main/settings/network/NetworkSettingsView.java</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4764/files#diff-bf36680f758ff209f343b0f2d75cbcadf8140bfe660d0c0336fc42c8c69119fe">desktop/src/main/java/bisq/desktop/util/GUIUtil.java</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/4764/files#diff-407e9498f14aced7e424484c01868c0286e2c89ec5eda72b213da81baa1efae1">desktop/src/test/java/bisq/desktop/main/offer/offerbook/OfferBookViewModelTest.java</a>
    (22)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/4764.patch'>https://github.com/bisq-network/bisq/pull/4764.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/4764.diff'>https://github.com/bisq-network/bisq/pull/4764.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/4764">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNUPQK4QZ5GS5GTOU6LSOYUMLANCNFSM4TODH4QA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNWBQSWGP4IIQWGFOBDSOYUMLA5CNFSM4TODH4QKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LACXU4A.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/4764",
"url": "https://github.com/bisq-network/bisq/pull/4764",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>