-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to v24 upstream, minor build edits, add Full RBF config option (…
…#107) * Update to v24 upstream, minor build edits, add Full RBF config option * Update migrations/gt_22_0_0_lt_23_0_0.sh Co-authored-by: Chris Guida <chrisguida@users.noreply.github.com> * Update scripts/services/getConfig.ts Co-authored-by: Chris Guida <chrisguida@users.noreply.github.com> * Cleanup * cleanup * strip all binaries Co-authored-by: Chris Guida <chrisguida@users.noreply.github.com> Co-authored-by: Chris Guida <chrisguida@gmail.com>
- Loading branch information
1 parent
31649d4
commit 5696eee
Showing
9 changed files
with
67 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -ea | ||
|
||
if [ $1 = "from" ]; then | ||
yq -i '.advanced.peers.addnode |= map(select(.hostname != ~ or . == "*"))' /root/.bitcoin/start9/config.yaml | ||
yq -i '.advanced.peers.addnode.[] |= {"hostname":., "port":~}' /root/.bitcoin/start9/config.yaml | ||
yq -i '(.advanced.mempool.mempoolfullrbf) = false' /root/.bitcoin/start9/config.yaml | ||
echo '{"configured": false }' | ||
exit 0 | ||
elif [ $1 = "to" ]; then | ||
yq -i '.advanced.peers.addnode |= map_values(.hostname)' /root/.bitcoin/start9/config.yaml | ||
yq -i 'del(.advanced.bloomfilters)' /root/.bitcoin/start9/config.yaml | ||
yq -i 'del(.advanced.mempool.mempoolfullrbf)' /root/.bitcoin/start9/config.yaml | ||
echo '{"configured": false }' | ||
exit 0 | ||
else | ||
echo "FATAL: Invalid argument: {from, to}. Migration failed." >&2 | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters