<p>There have been several changes in the voting branch (and api-integration) which I want to get into master to avoid that those branches run out of sync as well as to apply the improvements.<br>
The main changes are:</p>
<ul>
<li>The handling of persisted data in the p2p library (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="318480043" data-permission-text="Issue title is private" data-url="https://github.com/bisq-network/bisq-p2p/issues/8" href="https://github.com/bisq-network/bisq-p2p/issues/8">#8</a>)</li>
<li>Improvements of the app setup to support API projects in headless mode as well as in mixed mode</li>
<li>Use custom TxBroadcaster class for better error handling</li>
</ul>
<p>Beside that there are many smaller trivial improvements, fixes, refactoring and cleanups.</p>
<p>Changes in that project:</p>
<ul>
<li>Separate persistence by domains via custom services (See:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="318480043" data-permission-text="Issue title is private" data-url="https://github.com/bisq-network/bisq-p2p/issues/8" href="https://github.com/bisq-network/bisq-p2p/issues/8">#8</a>)</li>
<li>Add AppendOnlyDataStoreService and ProtectedDataStoreService</li>
<li>Improve handling of reading from resource files</li>
<li>Rename getHash to get32ByteHash</li>
<li>Add getCompactHash (20 bytes)</li>
<li>Add resource files, remove old persistableNetworkPayloadMap</li>
</ul>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>Sync up with changes vrom voting branch</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-0">src/main/java/bisq/network/p2p/P2PModule.java</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-1">src/main/java/bisq/network/p2p/peers/getdata/GetDataRequestHandler.java</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-2">src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-3">src/main/java/bisq/network/p2p/storage/P2PDataStorage.java</a>
    (216)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-4">src/main/java/bisq/network/p2p/storage/PersistedEntryMap.java</a>
    (93)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-5">src/main/java/bisq/network/p2p/storage/SequenceNumberMap.java</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-6">src/main/java/bisq/network/p2p/storage/payload/ProtectedStorageEntry.java</a>
    (5)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-7">src/main/java/bisq/network/p2p/storage/persistence/AppendOnlyDataStoreListener.java</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-8">src/main/java/bisq/network/p2p/storage/persistence/AppendOnlyDataStoreService.java</a>
    (84)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-9">src/main/java/bisq/network/p2p/storage/persistence/PersistableNetworkPayloadList.java</a>
    (12)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-10">src/main/java/bisq/network/p2p/storage/persistence/PersistableNetworkPayloadListService.java</a>
    (115)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-11">src/main/java/bisq/network/p2p/storage/persistence/ProtectedDataStoreListener.java</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-12">src/main/java/bisq/network/p2p/storage/persistence/ProtectedDataStoreService.java</a>
    (92)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-13">src/main/java/bisq/network/p2p/storage/persistence/StoreService.java</a>
    (137)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-14">src/main/resources/AccountAgeWitnessStore_BTC_MAINNET</a>
    (0)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-15">src/main/resources/TradeStatistics2Store_BTC_MAINNET</a>
    (0)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-16">src/test/java/bisq/network/p2p/mocks/MockMailboxPayload.java</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-17">src/test/java/bisq/network/p2p/storage/ProtectedDataStorageTest.java</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq-p2p/pull/15.patch'>https://github.com/bisq-network/bisq-p2p/pull/15.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq-p2p/pull/15.diff'>https://github.com/bisq-network/bisq-p2p/pull/15.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-p2p/pull/15">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtvZq2fjY6b3vuiJ-7oER3eU5QH2qks5uEfLYgaJpZM4VGsn3">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtni0Ge15zkMIyBOWDPvtp2xL5LvEks5uEfLYgaJpZM4VGsn3.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/bisq-network/bisq-p2p","title":"bisq-network/bisq-p2p","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/bisq-network/bisq-p2p"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Sync up with changes from voting branch (#15)"}],"action":{"name":"View Pull Request","url":"https://github.com/bisq-network/bisq-p2p/pull/15"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq-p2p/pull/15",
"url": "https://github.com/bisq-network/bisq-p2p/pull/15",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Sync up with changes from voting branch (#15)",
"sections": [
{
"text": "",
"activityTitle": "**Manfred Karrer**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@ManfredKarrer",
"facts": [

]
},
{
"title": "Commit Summary",
"facts": [
{
"name": "46241a5",
"value": "Sync up with changes vrom voting branch"
}
]
},
{
"title": "File Changes",
"facts": [
{
"name": "Modified",
"value": "[src/main/java/bisq/network/p2p/P2PModule.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-0) (6 changes)"
},
{
"name": "Modified",
"value": "[src/main/java/bisq/network/p2p/peers/getdata/GetDataRequestHandler.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-1) (2 changes)"
},
{
"name": "Modified",
"value": "[src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-2) (8 changes)"
},
{
"name": "Modified",
"value": "[src/main/java/bisq/network/p2p/storage/P2PDataStorage.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-3) (216 changes)"
},
{
"name": "Removed",
"value": "[src/main/java/bisq/network/p2p/storage/PersistedEntryMap.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-4) (93 changes)"
},
{
"name": "Modified",
"value": "[src/main/java/bisq/network/p2p/storage/SequenceNumberMap.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-5) (4 changes)"
},
{
"name": "Modified",
"value": "[src/main/java/bisq/network/p2p/storage/payload/ProtectedStorageEntry.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-6) (5 changes)"
},
{
"name": "Renamed",
"value": "[src/main/java/bisq/network/p2p/storage/persistence/AppendOnlyDataStoreListener.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-7) (4 changes)"
},
{
"name": "Added",
"value": "[src/main/java/bisq/network/p2p/storage/persistence/AppendOnlyDataStoreService.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-8) (84 changes)"
},
{
"name": "Renamed",
"value": "[src/main/java/bisq/network/p2p/storage/persistence/PersistableNetworkPayloadList.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-9) (12 changes)"
},
{
"name": "Added",
"value": "[src/main/java/bisq/network/p2p/storage/persistence/PersistableNetworkPayloadListService.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-10) (115 changes)"
},
{
"name": "Renamed",
"value": "[src/main/java/bisq/network/p2p/storage/persistence/ProtectedDataStoreListener.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-11) (4 changes)"
},
{
"name": "Added",
"value": "[src/main/java/bisq/network/p2p/storage/persistence/ProtectedDataStoreService.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-12) (92 changes)"
},
{
"name": "Added",
"value": "[src/main/java/bisq/network/p2p/storage/persistence/StoreService.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-13) (137 changes)"
},
{
"name": "Added",
"value": "[src/main/resources/AccountAgeWitnessStore_BTC_MAINNET](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-14) (0 changes)"
},
{
"name": "Renamed",
"value": "[src/main/resources/TradeStatistics2Store_BTC_MAINNET](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-15) (0 changes)"
},
{
"name": "Modified",
"value": "[src/test/java/bisq/network/p2p/mocks/MockMailboxPayload.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-16) (4 changes)"
},
{
"name": "Modified",
"value": "[src/test/java/bisq/network/p2p/storage/ProtectedDataStorageTest.java](https://github.com/bisq-network/bisq-p2p/pull/15/files#diff-17) (2 changes)"
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"bisq-network/bisq-p2p\",\n\"issueId\": 15,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"bisq-network/bisq-p2p\",\n\"pullRequestId\": 15\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/bisq-network/bisq-p2p/pull/15"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/bisq-network/bisq-p2p/pull/15.patch"
}
],
"@type": "OpenUri",
"name": "View patch"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/bisq-network/bisq-p2p/pull/15.diff"
}
],
"@type": "OpenUri",
"name": "View diff"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 354077175\n}"
}
],
"themeColor": "26292E"
}
]</script>