btc: add bitcoin core setup using the latest v24.0.1 #3

Closed
x1ddos wants to merge 0 commits from bitcoin24.0.1 into dev
x1ddos commented 2 years ago
Owner

the scripts are nearly identical to lnd/env.

current nakamochi nodes are running bitcoind v23. so, this also upgrades
to the latest. release notes are here:
https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-24.0.1.md
a notable change in v24 is the "full rbf".

the scripts are nearly identical to lnd/env. current nakamochi nodes are running bitcoind v23. so, this also upgrades to the latest. release notes are here: https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-24.0.1.md a notable change in v24 is the "full rbf".
x1ddos added 1 commit 2 years ago
7344993b22
btc: add bitcoin core setup using the latest v24.0.1
the scripts are nearly identical to lnd/env.

current nakamochi nodes are running bitcoind v23. so, this also upgrades
to the latest. release notes are here:
https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-24.0.1.md
a notable change in v24 is the "full rbf".
x1ddos requested review from offbyn 2 years ago
offbyn commented 2 years ago
Owner

tested 7344993b22

# ./apply.sh 
Package `snooze' already installed.
Package `opendoas' already installed.
Package `tar' already installed.
Package `gzip' already installed.
Package `curl' already installed.
Package `diffutils' already installed.
bitcoin-24.0.1.tar.gz: OK
2c2
< exec chpst -u bitcoind /home/bitcoind/bitcoin-23.0/bin/bitcoind -conf=/home/bitcoind/mainnet.conf 2>&1
---
> exec chpst -u bitcoind /home/bitcoind/bitcoin-24.0.1/bin/bitcoind -conf=/home/bitcoind/mainnet.conf 2>&1
ok: down: bitcoind: 1s, normally up
ok: run: bitcoind: (pid 660) 0s
./apply.sh: 15: .: Can't open ./lnd/env
tested 7344993b22e6a8deff4d2eafaeda42582772a40b ``` # ./apply.sh Package `snooze' already installed. Package `opendoas' already installed. Package `tar' already installed. Package `gzip' already installed. Package `curl' already installed. Package `diffutils' already installed. bitcoin-24.0.1.tar.gz: OK 2c2 < exec chpst -u bitcoind /home/bitcoind/bitcoin-23.0/bin/bitcoind -conf=/home/bitcoind/mainnet.conf 2>&1 --- > exec chpst -u bitcoind /home/bitcoind/bitcoin-24.0.1/bin/bitcoind -conf=/home/bitcoind/mainnet.conf 2>&1 ok: down: bitcoind: 1s, normally up ok: run: bitcoind: (pid 660) 0s ./apply.sh: 15: .: Can't open ./lnd/env ```
offbyn commented 2 years ago
Owner
# cat /var/log/sysupdate.log 
Mon Feb  6 03:00:00 UTC 2023
HEAD is now at 35f8734 base: preserve sysupdates channel on initial setup
Already on 'dev'
Your branch is up to date with 'origin/dev'.
Already up to date.
Package `snooze' already installed.
Package `opendoas' already installed.
Package `tar' already installed.
Package `gzip' already installed.
Package `curl' already installed.
Package `diffutils' already installed.
ok: run: lnd: (pid 11770) 29611s

``` # cat /var/log/sysupdate.log Mon Feb 6 03:00:00 UTC 2023 HEAD is now at 35f8734 base: preserve sysupdates channel on initial setup Already on 'dev' Your branch is up to date with 'origin/dev'. Already up to date. Package `snooze' already installed. Package `opendoas' already installed. Package `tar' already installed. Package `gzip' already installed. Package `curl' already installed. Package `diffutils' already installed. ok: run: lnd: (pid 11770) 29611s ```
offbyn commented 2 years ago
Owner
/opt/bin/bitcoin-cli.sh getnetworkinfo
{
  "version": 240001,
  "subversion": "/Satoshi:24.0.1/",
  "protocolversion": 70016,
  "localservices": "0000000000000408",
  "localservicesnames": [
    "WITNESS",
    "NETWORK_LIMITED"
  ],
  "localrelay": true,
  "timeoffset": 0,
  "networkactive": true,
  "connections": 10,
  "connections_in": 0,
  "connections_out": 10,
``` /opt/bin/bitcoin-cli.sh getnetworkinfo { "version": 240001, "subversion": "/Satoshi:24.0.1/", "protocolversion": 70016, "localservices": "0000000000000408", "localservicesnames": [ "WITNESS", "NETWORK_LIMITED" ], "localrelay": true, "timeoffset": 0, "networkactive": true, "connections": 10, "connections_in": 0, "connections_out": 10, ```
offbyn approved these changes 2 years ago
offbyn left a comment
Owner

LGTM with nit

got this error while testing ./apply.sh: 15: .: Can't open ./lnd/env

# ls -lah lnd/
total 12K
drwxr-xr-x 2 root root 4.0K Feb  5 18:46 .
drwxr-xr-x 7 root root 4.0K Feb  6 08:24 ..
-rw-r--r-- 1 root root 1.9K Feb  5 18:46 env
LGTM with nit got this error while testing `./apply.sh: 15: .: Can't open ./lnd/env` ``` # ls -lah lnd/ total 12K drwxr-xr-x 2 root root 4.0K Feb 5 18:46 . drwxr-xr-x 7 root root 4.0K Feb 6 08:24 .. -rw-r--r-- 1 root root 1.9K Feb 5 18:46 env ```
x1ddos commented 2 years ago
Poster
Owner

hm... very strange "can't open lnd/env" error because nothing has changed in the lnd setup. 🤔

ok, i'll merge to dev and test everything again from scratch. if good, will merge with master.

thanks for testing!

hm... very strange "can't open lnd/env" error because nothing has changed in the lnd setup. 🤔 ok, i'll merge to dev and test everything again from scratch. if good, will merge with master. thanks for testing!
x1ddos force-pushed bitcoin24.0.1 from 7344993b22 to aee0b8a3aa 2 years ago
x1ddos commented 2 years ago
Poster
Owner

merged in aee0b8a3aa but gitea didn't pick it up because i forgot to enable a setting. all good now.

merged in https://git.qcode.ch/nakamochi/sysupdates/commit/aee0b8a3aa3682561b1d862e9a860d0a667ae889 but gitea didn't pick it up because i forgot to enable a setting. all good now.
x1ddos closed this pull request 2 years ago
x1ddos deleted branch bitcoin24.0.1 2 years ago
x1ddos commented 2 years ago
Poster
Owner

yeah, same thing on qmochi:

on Feb  6 04:25:15 PM UTC 2023
HEAD is now at aee0b8a btc: add bitcoin core setup using the latest v24.0.1
Already on 'dev'
Your branch is up to date with 'origin/dev'.
Already up to date.
Package `snooze' already installed.
Package `opendoas' already installed.
Package `tar' already installed.
Package `gzip' already installed.
Package `curl' already installed.
Package `diffutils' already installed.
bitcoin-24.0.1.tar.gz: OK
2,3c2
< [ -r conf ] && . ./conf
< exec chpst -u bitcoind /home/bitcoind/bitcoin-23.0/bin/bitcoind -conf=/home/bitcoind/mainnet.conf -listen 2>&1
---
> exec chpst -u bitcoind /home/bitcoind/bitcoin-24.0.1/bin/bitcoind -conf=/home/bitcoind/mainnet.conf 2>&1
ok: down: bitcoind: 0s, normally up
ok: run: bitcoind: (pid 2475) 1s
./apply.sh: 15: .: Can't open ./lnd/env

i think i know what it is.

yeah, same thing on qmochi: ``` on Feb 6 04:25:15 PM UTC 2023 HEAD is now at aee0b8a btc: add bitcoin core setup using the latest v24.0.1 Already on 'dev' Your branch is up to date with 'origin/dev'. Already up to date. Package `snooze' already installed. Package `opendoas' already installed. Package `tar' already installed. Package `gzip' already installed. Package `curl' already installed. Package `diffutils' already installed. bitcoin-24.0.1.tar.gz: OK 2,3c2 < [ -r conf ] && . ./conf < exec chpst -u bitcoind /home/bitcoind/bitcoin-23.0/bin/bitcoind -conf=/home/bitcoind/mainnet.conf -listen 2>&1 --- > exec chpst -u bitcoind /home/bitcoind/bitcoin-24.0.1/bin/bitcoind -conf=/home/bitcoind/mainnet.conf 2>&1 ok: down: bitcoind: 0s, normally up ok: run: bitcoind: (pid 2475) 1s ./apply.sh: 15: .: Can't open ./lnd/env ``` i think i know what it is.
x1ddos commented 2 years ago
Poster
Owner

yeah, same thing on qmochi:
...
./apply.sh: 15: .: Can't open ./lnd/env

i think i know what it is.

right. this was the problem: 57d9548b84

> yeah, same thing on qmochi: > ... > ./apply.sh: 15: .: Can't open ./lnd/env > > i think i know what it is. right. this was the problem: https://git.qcode.ch/nakamochi/sysupdates/commit/57d9548b841fac422d780d0159e7046118eab8bc

Reviewers

offbyn approved these changes 2 years ago
This pull request cannot be reopened because the branch was deleted.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b bitcoin24.0.1 dev
git pull origin bitcoin24.0.1

Step 2:

Merge the changes and update on Gitea.
git checkout dev
git merge --no-ff bitcoin24.0.1
git push origin dev
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nakamochi/sysupdates#3
Loading…
There is no content yet.