Giter VIP home page Giter VIP logo

blockstream / bitcoinsatellite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitcoinfibre/bitcoinfibre

30.0 30.0 9.0 207.02 MB

Bitcoin Satellite

Home Page: https://blockstream.com/satellite

License: Other

Makefile 0.89% Shell 1.01% M4 1.29% QMake 0.01% Python 18.47% C++ 67.42% C 9.77% HTML 0.13% Objective-C++ 0.03% Assembly 0.16% Scheme 0.15% Sage 0.34% CMake 0.30% Cap'n Proto 0.01% Java 0.01% Dockerfile 0.02% Batchfile 0.01%

bitcoinsatellite's People

Contributors

achow101 avatar ajtowns avatar blockstreamsatellite avatar dongcarl avatar fanquake avatar gavinandresen avatar glozow avatar gmaxwell avatar hebasto avatar instagibbs avatar jamesob avatar jnewbery avatar jonasschnelli avatar jonatack avatar kallewoof avatar laanwj avatar luke-jr avatar meshcollider avatar morcos avatar non-github-bitcoin avatar practicalswift avatar promag avatar ryanofsky avatar sdaftuar avatar sipa avatar sjors avatar thebluematt avatar thestack avatar theuni avatar vasild avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitcoinsatellite's Issues

Attempt to compile bitcoinsatellite on Linux Mint 19 Cinnamon fails

I'm trying to compile bitcoinsatellite on Linux Mint 19 Cinnamon with the following build or compiler options:

Build Options:
with endomorphism = no
with ecmult precomp = yes
with jni = no
with benchmarks = no
with coverage = no
module ecdh = no
module recovery = yes

asm = x86_64
bignum = no
field = 64bit
scalar = 64bit

CC = gcc
CFLAGS = -g -O2 -W -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -fvisibility=hidden -O3
CPPFLAGS =
LDFLAGS =

Fixing libtool for -rpath problems.

Options used to compile and link:
with wallet = no
with gui / qt = no
with zmq = no
with test = yes
with prop = no
with fuzz = no
with bench = yes
with upnp = no
use asm = yes
sanitizers =
debug enabled = no
gprof enabled = no
werror = no

target os = linux
build os =

CC = gcc
CFLAGS = -g -O2
CPPFLAGS = -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS
CXX = g++ -std=c++11
CXXFLAGS = -fstack-reuse=none -Wstack-protector -fstack-protector-all -O2
LDFLAGS = -pthread -Wl,-z,relro -Wl,-z,now -pie
ARFLAGS = cr

I get the following error message:

In file included from wirehair/gf256.h:70:0,
from wirehair/gf256.cpp:30:
/usr/lib/gcc/x86_64-linux-gnu/7/include/tmmintrin.h: In function ‘void gf256_mul_mem(void*, const void*, uint8_t, int)’:
/usr/lib/gcc/x86_64-linux-gnu/7/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’: target specific option mismatch
_mm_shuffle_epi8 (__m128i __X, __m128i __Y)
^~~~~~~~~~~~~~~~
wirehair/gf256.cpp:1244:16: note: called from here
h0 = _mm_shuffle_epi8(table_hi_y, h0);
~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from wirehair/gf256.h:70:0,
from wirehair/gf256.cpp:30:
/usr/lib/gcc/x86_64-linux-gnu/7/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’: target specific option mismatch
_mm_shuffle_epi8 (__m128i __X, __m128i __Y)
^~~~~~~~~~~~~~~~
wirehair/gf256.cpp:1243:16: note: called from here
l0 = _mm_shuffle_epi8(table_lo_y, l0);
~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from wirehair/gf256.h:70:0,
from wirehair/gf256.cpp:30:
/usr/lib/gcc/x86_64-linux-gnu/7/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’: target specific option mismatch
_mm_shuffle_epi8 (__m128i __X, __m128i __Y)
^~~~~~~~~~~~~~~~
wirehair/gf256.cpp:1244:16: note: called from here
h0 = _mm_shuffle_epi8(table_hi_y, h0);
~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from wirehair/gf256.h:70:0,
from wirehair/gf256.cpp:30:
/usr/lib/gcc/x86_64-linux-gnu/7/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline ‘__m128i _mm_shuffle_epi8(__m128i, __m128i)’: target specific option mismatch
_mm_shuffle_epi8 (__m128i __X, __m128i __Y)
^~~~~~~~~~~~~~~~
wirehair/gf256.cpp:1243:16: note: called from here
l0 = _mm_shuffle_epi8(table_lo_y, l0);
~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:8091: recipe for target 'wirehair/libbitcoin_server_a-gf256.o' failed
make[2]: *** [wirehair/libbitcoin_server_a-gf256.o] Error 1
make[2]: Verzeichnis „/home/blocksatdvbs2/install/bitcoinsatellite/bitcoinsatellite/src“ wird verlassen
Makefile:13462: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Verzeichnis „/home/blocksatdvbs2/install/bitcoinsatellite/bitcoinsatellite/src“ wird verlassen
Makefile:774: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

UDP: got invalid header and short txids from trust peers

Raspberry pi 400 (arm64) getting fed data over a switch connected to the novra satellite decoder. I used blocksat-cli deps install —btc to grab the bitcoind binaries. Bitcoin datadir on external usb formatted as Linux file system.

I get the message: UDP: got invalid header and short txids from trust peer(s), check your trusted peers are behaving well. This error message is sent to debug log every 50 seconds or so, even if bitcoind has 0 peers (I have other nodes on the switch, but none are trusted).

I haven’t tested whether bitcoind will stay synced to chain tip or catch up from behind yet: bitcoind crashes without writing anything to debug.log. Only stays up for about 9 minutes before crashing.

Bitcoin Satellite cannot be built on a 32-bit Debian

Hello, I'm trying to build your version of Bitcoin Fibre, which you call Bitcoin Satellite, on a 32-bit computer with a Debian operating system (4.9.0-9-686-pae # 1 SMP Debian 4.9.168-1 + deb9u3 (2019-06-16) i686 GNU / Linux).

I get the following error message:

In file included from wirehair / gf256.h: 70: 0,
from wirehair / gf256.cpp: 30:
/usr/lib/gcc/i686-linux-gnu/6/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline ’_m128i mm_shuffle_epi8 ( m128i, __m128i)’: target specific option mismatch
_mm_shuffle_epi8 (__m128i __X, __m128i __Y)

What compiler options do I need to use to configure the build process?

By the way, this error does not occur when creating the original version of Bitcoin Fibre.

Installation of bitcoin satellite on a 64-bit Ubuntu VERSION 20.04.3 LTS failed

Hello, I tried to install Bitcoin Satellite on a 64-bit Ubuntu VERSION 20.04.3 LTS (Focal Fossa). Neither the package installation nor the installation after compiling the sources works. That means when I run bitcoind I get" Illegal instruction (core dumped) ". Is there an option to configure the compilation process that solves this problem?

For which Ubuntu LTS version does Bitcoin Satellite work?

Maybe the problem is not the Ubuntu version but the CPU?
model name : Intel(R) Xeon(R) CPU E5620 @ 2.40GHz

After running bitcoind with the gdb debugger, I get the following output:
(gdb) run
Starting program: / usr / local / bin / bitcoind
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
gf256_mul_mem_init () at wirehair / gf256.cpp: 581
581 const GF256_M128 table_lo = _mm_loadu_si128 ((GF256_M128 *) lo);

error compiling tbs drivers

hey i got this error after starting blocksat-cli deps install

hw : Raspberry Pi 4 Model B Rev 1.2
os : Ubuntu 20.04.1 LTS 64bits

ERROR: "__devm_regmap_init_sccb" [/home/ubuntu/.blocksat/src/tbsdriver/media_build/v4l/ov9650.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[2]: *** [Makefile:1673: modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-1022-raspi'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/home/ubuntu/.blocksat/src/tbsdriver/media_build/v4l'
make: *** [Makefile:26: all] Error 2
Traceback (most recent call last):
File "/usr/local/bin/blocksat-cli", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/blocksatcli/main.py", line 60, in main
args.func(args)
File "/usr/local/lib/python3.8/dist-packages/blocksatcli/dependencies.py", line 547, in drivers
runner.run(["make", nproc_arg], cwd = media_build_dir)
File "/usr/local/lib/python3.8/dist-packages/blocksatcli/util.py", line 239, in run
res.check_returncode()
File "/usr/lib/python3.8/subprocess.py", line 444, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['make', '-j4']' returned non-zero exit status 2.

same errror on tbs forum :
https://www.tbsdtv.com/forum/viewtopic.php?f=87&t=25419&start=10

Docker container incompatible with new linux device driver naming.

New versions of TBS drivers consider /dev/dvb/adapterX naming, incompatible with dvb0_0 device name.

Kernel: Linux 5.4.0-1045-raspi aarch64

Device: TBS5927

Driver compiled according support on issue: tbsdtv/linux_media#261
media_build branch extra substituted .blocksat/src/tbsdriver/media_build
.blocksat/src/tbsdriver/media_build/install.sh used to compile and install the driver.

bitcoin satellite core RUNNING PROPERLY outside the containers, but when trying to run on docker containers:

inspired by the commands on https://github.com/Blockstream/satellite/blob/master/doc/docker.md
for USB Receiver

Had to change the device name from /dev/dvb0_0 to /dev/dvb/adapter0 on the Docker run command, the Docker went up but does not reconize the device properly.

user@oasis:~$ sudo docker run -it     --device=/dev/dvb/adapter0  --cap-add=NET_ADMIN     --cap-add=SYS_ADMIN     -v /home/user/.blocksat:/root/.blocksat/  -v /home/user/bitcoin:/root/.bitcoin/   --restart=unless-stopped  blockstream/satellite
root@ddeb93818f6e:/# bitcoind
2021-11-17T06:14:00Z Bitcoin Core version v22.0.0 (release build)
2021-11-17T06:14:00Z Bitcoin Satellite version v0.2.3 (release build)
2021-11-17T06:14:00Z InitParameterInteraction: parameter interaction: -proxy set -> setting -upnp=0
2021-11-17T06:14:00Z InitParameterInteraction: parameter interaction: -proxy set -> setting -natpmp=0
2021-11-17T06:14:00Z InitParameterInteraction: parameter interaction: -proxy set -> setting -discover=0
2021-11-17T06:14:00Z Assuming ancestors of block 00000000000000000008a89e854d57e5667df88f1cdef6fde2fbca1de5b639ad have valid signatures.
2021-11-17T06:14:00Z Setting nMinimumChainWork=00000000000000000000000000000000000000001fa4663bbbe19f82de910280
2021-11-17T06:14:00Z Using the 'standard' SHA256 implementation
2021-11-17T06:14:01Z Default data directory /root/.bitcoin
2021-11-17T06:14:01Z Using data directory /root/.bitcoin
2021-11-17T06:14:01Z Config file: /root/.bitcoin/bitcoin.conf
2021-11-17T06:14:01Z Config file arg: bind="10.21.21.8"
2021-11-17T06:14:01Z Config file arg: blockfilterindex="1"
2021-11-17T06:14:01Z Config file arg: dbcache="200"
2021-11-17T06:14:01Z Config file arg: debug="udpnet"
2021-11-17T06:14:01Z Config file arg: debug="udpmulticast"
2021-11-17T06:14:01Z Config file arg: deprecatedrpc="addresses"
2021-11-17T06:14:01Z Config file arg: listen="1"
2021-11-17T06:14:01Z Config file arg: maxmempool="300"
2021-11-17T06:14:01Z Config file arg: peerblockfilters="1"
2021-11-17T06:14:01Z Config file arg: peerbloomfilters="1"
2021-11-17T06:14:01Z Config file arg: port="8333"
2021-11-17T06:14:01Z Config file arg: proxy="10.21.21.11:9050"
2021-11-17T06:14:01Z Config file arg: rpcallowip="10.21.21.1/16"
2021-11-17T06:14:01Z Config file arg: rpcallowip="127.0.0.1"
2021-11-17T06:14:01Z Config file arg: rpcauth=****
2021-11-17T06:14:01Z Config file arg: rpcbind=****
2021-11-17T06:14:01Z Config file arg: rpcbind=****
2021-11-17T06:14:01Z Config file arg: rpcport="8332"
2021-11-17T06:14:01Z Config file arg: rpcworkqueue="64"
2021-11-17T06:14:01Z Config file arg: txindex="1"
2021-11-17T06:14:01Z Config file arg: udpmulticast="dvb0_0,239.0.0.2:4434,172.16.235.9,1,blocksat-tbs"
2021-11-17T06:14:01Z Config file arg: udpmulticastloginterval="600"
2021-11-17T06:14:01Z Config file arg: zmqpubhashblock="tcp://0.0.0.0:28334"
2021-11-17T06:14:01Z Config file arg: zmqpubrawblock="tcp://0.0.0.0:28332"
2021-11-17T06:14:01Z Config file arg: zmqpubrawtx="tcp://0.0.0.0:28333"
2021-11-17T06:14:01Z Using at most 125 automatic connections (1048576 file descriptors available)
2021-11-17T06:14:01Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2021-11-17T06:14:01Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2021-11-17T06:14:01Z Script verification uses 3 additional threads
2021-11-17T06:14:01Z scheduler thread start
2021-11-17T06:14:01Z Binding RPC on address 10.21.21.8 port 8332 failed.
2021-11-17T06:14:01Z HTTP: creating work queue of depth 64
2021-11-17T06:14:01Z Using random cookie authentication.
2021-11-17T06:14:01Z Generated RPC authentication cookie /root/.bitcoin/.cookie
2021-11-17T06:14:01Z Using rpcauth authentication.
2021-11-17T06:14:01Z HTTP: starting 4 worker threads
2021-11-17T06:14:01Z Using wallet directory /root/.bitcoin
2021-11-17T06:14:01Z init message: Verifying wallet(s)…
2021-11-17T06:14:01Z init message: Loading banlist…
2021-11-17T06:14:01Z SetNetworkActive: true
2021-11-17T06:14:01Z Using /16 prefix for IP bucketing
2021-11-17T06:14:01Z Cache configuration:
2021-11-17T06:14:01Z * Using 2.0 MiB for block index database
2021-11-17T06:14:01Z * Using 24.8 MiB for transaction index database
2021-11-17T06:14:01Z * Using 21.7 MiB for basic block filter index database
2021-11-17T06:14:01Z * Using 8.0 MiB for chain state database
2021-11-17T06:14:01Z * Using 143.6 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2021-11-17T06:14:01Z init message: Loading block index…
2021-11-17T06:14:01Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
2021-11-17T06:14:01Z Opening LevelDB in /root/.bitcoin/blocks/index
2021-11-17T06:14:01Z Opened LevelDB successfully
2021-11-17T06:14:01Z Using obfuscation key for /root/.bitcoin/blocks/index: 0000000000000000
2021-11-17T06:14:22Z LoadBlockIndexDB: last block file = 2808
2021-11-17T06:14:22Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=36, size=42422373, heights=710044...710079, time=2021-11-16...2021-11-17)
2021-11-17T06:14:22Z Checking all blk files are present...
2021-11-17T06:14:23Z Opening LevelDB in /root/.bitcoin/chainstate
2021-11-17T06:14:23Z Opened LevelDB successfully
2021-11-17T06:14:23Z Using obfuscation key for /root/.bitcoin/chainstate: eea31e6916722d15
2021-11-17T06:14:24Z Loaded best chain: hashBestChain=00000000000000000003c33222688c5eb8ce01c8a13af089710d35dd64e0b999 height=710079 date=2021-11-17T04:56:51Z progress=0.999984
2021-11-17T06:14:24Z init message: Verifying blocks…
2021-11-17T06:14:24Z Verifying last 6 blocks at level 3
2021-11-17T06:14:24Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2021-11-17T06:14:29Z No coin database inconsistencies in last 6 blocks (6125 transactions)
2021-11-17T06:14:29Z  block index           27887ms
2021-11-17T06:14:29Z Opening LevelDB in /root/.bitcoin/future_blocks
2021-11-17T06:14:29Z Opened LevelDB successfully
2021-11-17T06:14:29Z Using obfuscation key for /root/.bitcoin/future_blocks: 0000000000000000
2021-11-17T06:14:29Z Opening LevelDB in /root/.bitcoin/indexes/txindex
2021-11-17T06:14:30Z Opened LevelDB successfully
2021-11-17T06:14:30Z Using obfuscation key for /root/.bitcoin/indexes/txindex: 0000000000000000
2021-11-17T06:14:30Z txindex thread start
2021-11-17T06:14:30Z txindex is enabled at height 710079
2021-11-17T06:14:30Z txindex thread exit
2021-11-17T06:14:30Z Opening LevelDB in /root/.bitcoin/indexes/blockfilter/basic/db
2021-11-17T06:14:30Z Opened LevelDB successfully
2021-11-17T06:14:30Z Using obfuscation key for /root/.bitcoin/indexes/blockfilter/basic/db: 0000000000000000
2021-11-17T06:14:30Z block tree size = 710080
2021-11-17T06:14:30Z nBestHeight = 710079
2021-11-17T06:14:30Z Unable to bind to 10.21.21.8:8333 on this computer (bind returned error Cannot assign requested address (99))
2021-11-17T06:14:30Z Error: Unable to bind to 10.21.21.8:8333 on this computer (bind returned error Cannot assign requested address (99))
Error: 2021-11-17T06:14:30Z loadblk thread start
Unable to bind to 10.21.21.8:8333 on this computer (bind returned error Cannot assign requested address (99))
2021-11-17T06:14:30Z Leaving InitialBlockDownload (latching to false)
2021-11-17T06:14:30Z Bound to 127.0.0.1:8334
2021-11-17T06:14:30Z init message: Loading P2P addresses…
2021-11-17T06:14:30Z basic block filter index thread start
2021-11-17T06:14:30Z basic block filter index is enabled at height 710079
2021-11-17T06:14:30Z basic block filter index thread exit
2021-11-17T06:14:30Z torcontrol thread start
2021-11-17T06:14:31Z Loaded 64463 addresses from peers.dat  918ms
2021-11-17T06:14:31Z Loaded 0 addresses from "anchors.dat"
2021-11-17T06:14:31Z 0 block-relay-only anchors will be tried for connections.
2021-11-17T06:14:31Z init message: Starting network threads…
2021-11-17T06:14:31Z addcon thread start
2021-11-17T06:14:31Z opencon thread start
2021-11-17T06:14:31Z msghand thread start
2021-11-17T06:14:31Z net thread start
2021-11-17T06:14:31Z dnsseed thread start
2021-11-17T06:14:31Z Waiting 300 seconds before querying DNS seeds.
2021-11-17T06:14:31Z Error: couldn't find an index for interface dvb0_0: No such device
2021-11-17T06:14:31Z Error: Failed to initialize UDP connections
Error: Failed to initialize UDP connections
2021-11-17T06:14:31Z tor: Thread interrupt
2021-11-17T06:14:31Z torcontrol thread exit
2021-11-17T06:14:31Z addcon thread exit
2021-11-17T06:14:31Z opencon thread exit
2021-11-17T06:14:31Z dnsseed thread exit
2021-11-17T06:14:31Z Shutdown: In progress...
2021-11-17T06:14:31Z net thread exit
2021-11-17T06:14:31Z msghand thread exit
2021-11-17T06:14:32Z DumpAnchors: Flush 0 outbound block-relay-only peer addresses to anchors.dat started
2021-11-17T06:14:32Z DumpAnchors: Flush 0 outbound block-relay-only peer addresses to anchors.dat completed (0.02s)
2021-11-17T06:14:32Z scheduler thread exit
2021-11-17T06:14:34Z Imported mempool transactions from disk: 731 succeeded, 0 failed, 0 expired, 0 already there, 0 waiting for initial broadcast
2021-11-17T06:14:34Z loadblk thread exit
2021-11-17T06:14:34Z Writing 0 unbroadcast transactions to disk.
2021-11-17T06:14:34Z Dumped mempool: 0.016371s to copy, 0.039826s to dump
2021-11-17T06:14:34Z FlushStateToDisk: write coins cache to disk (2491 coins, 365kB) started
2021-11-17T06:14:34Z FlushStateToDisk: write coins cache to disk (2491 coins, 365kB) completed (0.00s)
2021-11-17T06:14:34Z FlushStateToDisk: write coins cache to disk (0 coins, 40kB) started
2021-11-17T06:14:34Z FlushStateToDisk: write coins cache to disk (0 coins, 40kB) completed (0.00s)
2021-11-17T06:14:37Z Shutdown: done
root@ddeb93818f6e:/#

Tried also to run bitcoin satellite node to run with the device configuration of the host, but was unable to connect to the device, according to the log:

root@56c11a1d9af9:/# bitcoind
2021-11-17T05:36:32Z Bitcoin Core version v22.0.0 (release build)
2021-11-17T05:36:32Z Bitcoin Satellite version v0.2.3 (release build)
2021-11-17T05:36:32Z Assuming ancestors of block 00000000000000000008a89e854d57e5667df88f1cdef6fde2fbca1de5b639ad have valid signatures.
2021-11-17T05:36:32Z Setting nMinimumChainWork=00000000000000000000000000000000000000001fa4663bbbe19f82de910280
2021-11-17T05:36:32Z Using the 'standard' SHA256 implementation
2021-11-17T05:36:32Z Default data directory /root/.bitcoin
2021-11-17T05:36:32Z Using data directory /root/.bitcoin
2021-11-17T05:36:32Z Config file: /root/.bitcoin/bitcoin.conf
2021-11-17T05:36:32Z Config file arg: debug="udpnet"
2021-11-17T05:36:32Z Config file arg: debug="udpmulticast"
2021-11-17T05:36:32Z Config file arg: udpmulticast="dvb0_0,239.0.0.2:4434,172.16.235.9,1,blocksat-tbs"
2021-11-17T05:36:32Z Config file arg: udpmulticastloginterval="600"
2021-11-17T05:36:32Z Using at most 125 automatic connections (1048576 file descriptors available)
2021-11-17T05:36:32Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2021-11-17T05:36:32Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2021-11-17T05:36:32Z Script verification uses 3 additional threads
2021-11-17T05:36:32Z scheduler thread start
2021-11-17T05:36:32Z libevent: getaddrinfo: address family for nodename not supported
2021-11-17T05:36:32Z Binding RPC on address ::1 port 8332 failed.
2021-11-17T05:36:32Z HTTP: creating work queue of depth 16
2021-11-17T05:36:32Z Using random cookie authentication.
2021-11-17T05:36:32Z Generated RPC authentication cookie /root/.bitcoin/.cookie
2021-11-17T05:36:32Z HTTP: starting 4 worker threads
2021-11-17T05:36:32Z Using wallet directory /root/.bitcoin
2021-11-17T05:36:32Z init message: Verifying wallet(s)…
2021-11-17T05:36:32Z init message: Loading banlist…
2021-11-17T05:36:32Z SetNetworkActive: true
2021-11-17T05:36:32Z Using /16 prefix for IP bucketing
2021-11-17T05:36:32Z Cache configuration:
2021-11-17T05:36:32Z * Using 2.0 MiB for block index database
2021-11-17T05:36:32Z * Using 8.0 MiB for chain state database
2021-11-17T05:36:32Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2021-11-17T05:36:32Z init message: Loading block index…
2021-11-17T05:36:32Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
2021-11-17T05:36:32Z Opening LevelDB in /root/.bitcoin/blocks/index
2021-11-17T05:36:32Z Opened LevelDB successfully
2021-11-17T05:36:32Z Using obfuscation key for /root/.bitcoin/blocks/index: 0000000000000000
2021-11-17T05:36:54Z LoadBlockIndexDB: last block file = 2808
2021-11-17T05:36:54Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=36, size=42422373, heights=710044...710079, time=2021-11-16...2021-11-17)
2021-11-17T05:36:54Z Checking all blk files are present...
2021-11-17T05:36:55Z Opening LevelDB in /root/.bitcoin/chainstate
2021-11-17T05:36:55Z Opened LevelDB successfully
2021-11-17T05:36:55Z Using obfuscation key for /root/.bitcoin/chainstate: eea31e6916722d15
2021-11-17T05:36:56Z Loaded best chain: hashBestChain=00000000000000000003c33222688c5eb8ce01c8a13af089710d35dd64e0b999 height=710079 date=2021-11-17T04:56:51Z progress=0.999992
2021-11-17T05:36:56Z init message: Verifying blocks…
2021-11-17T05:36:56Z Verifying last 6 blocks at level 3
2021-11-17T05:36:56Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2021-11-17T05:36:59Z No coin database inconsistencies in last 6 blocks (6125 transactions)
2021-11-17T05:36:59Z  block index           27213ms
2021-11-17T05:36:59Z Opening LevelDB in /root/.bitcoin/future_blocks
2021-11-17T05:36:59Z Opened LevelDB successfully
2021-11-17T05:36:59Z Using obfuscation key for /root/.bitcoin/future_blocks: 0000000000000000
2021-11-17T05:36:59Z block tree size = 710080
2021-11-17T05:36:59Z nBestHeight = 710079
2021-11-17T05:36:59Z Bound to 127.0.0.1:8334
2021-11-17T05:36:59Z loadblk thread start
2021-11-17T05:36:59Z Bound to [::]:8333
2021-11-17T05:36:59Z Bound to 0.0.0.0:8333
2021-11-17T05:36:59Z init message: Loading P2P addresses…
2021-11-17T05:36:59Z torcontrol thread start
2021-11-17T05:36:59Z Leaving InitialBlockDownload (latching to false)
2021-11-17T05:37:02Z Loaded 64463 addresses from peers.dat  2409ms
2021-11-17T05:37:02Z Loaded 0 addresses from "anchors.dat"
2021-11-17T05:37:02Z 0 block-relay-only anchors will be tried for connections.
2021-11-17T05:37:02Z init message: Starting network threads…
2021-11-17T05:37:02Z net thread start
2021-11-17T05:37:02Z dnsseed thread start
2021-11-17T05:37:02Z Waiting 300 seconds before querying DNS seeds.
2021-11-17T05:37:02Z addcon thread start
2021-11-17T05:37:02Z opencon thread start
2021-11-17T05:37:02Z msghand thread start
2021-11-17T05:37:02Z Error: couldn't find an index for interface dvb0_0: No such device
2021-11-17T05:37:02Z Error: Failed to initialize UDP connections
Error: Failed to initialize UDP connections
2021-11-17T05:37:02Z tor: Thread interrupt
2021-11-17T05:37:02Z Shutdown: In progress...
2021-11-17T05:37:02Z torcontrol thread exit
2021-11-17T05:37:02Z opencon thread exit
2021-11-17T05:37:02Z addcon thread exit
2021-11-17T05:37:02Z dnsseed thread exit
2021-11-17T05:37:02Z net thread exit
2021-11-17T05:37:02Z msghand thread exit
2021-11-17T05:37:03Z DumpAnchors: Flush 0 outbound block-relay-only peer addresses to anchors.dat started
2021-11-17T05:37:03Z DumpAnchors: Flush 0 outbound block-relay-only peer addresses to anchors.dat completed (0.01s)
2021-11-17T05:37:03Z scheduler thread exit
2021-11-17T05:37:05Z Imported mempool transactions from disk: 731 succeeded, 0 failed, 0 expired, 0 already there, 0 waiting for initial broadcast
2021-11-17T05:37:06Z loadblk thread exit
2021-11-17T05:37:06Z Writing 0 unbroadcast transactions to disk.
2021-11-17T05:37:06Z Dumped mempool: 0.006228s to copy, 0.033123s to dump
2021-11-17T05:37:06Z FlushStateToDisk: write coins cache to disk (2491 coins, 365kB) started
2021-11-17T05:37:06Z FlushStateToDisk: write coins cache to disk (2491 coins, 365kB) completed (0.00s)
2021-11-17T05:37:06Z FlushStateToDisk: write coins cache to disk (0 coins, 40kB) started
2021-11-17T05:37:06Z FlushStateToDisk: write coins cache to disk (0 coins, 40kB) completed (0.00s)
2021-11-17T05:37:08Z Shutdown: done

Can't successfully --reindex while Core 25.99 can

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

Running bitcoind --reindex fails reliably when using bitcoin satellite but doesn't fail while using latest bitcoin-core

Expected behaviour

to --reindex like core

Steps to reproduce

bitcoin-cli stop
bitcoind --reindex

Relevant log output

2023-09-17T17:29:50Z Bitcoin Core version v25.0.0 (release build)
2023-09-17T17:29:50Z Bitcoin Satellite version v0.2.4 (release build)
.
.
.

2023-09-17T18:22:23Z UpdateTip: new best=0000000000000003db2fb830b859db8a01a9b66e0397ac0531e14c8df0d33d0c height=275387 version=0x0000000>
2023-09-17T18:22:23Z ERROR: ReadBlockFromDisk(CBlock&, CBlockIndex*): GetHash() doesn't match index for CBlockIndex(pprev=0x7f8985c32b68,>
2023-09-17T18:22:23Z *** Failed to read block
2023-09-17T18:22:23Z Error: A fatal internal error occurred, see debug.log for details
2023-09-17T18:22:23Z Failed to connect best block (Failed to read block)
2023-09-17T18:22:23Z loadblk thread exit
2023-09-17T18:22:23Z Shutdown: In progress...

How did you obtain Bitcoin Core

Compiled from source

What version of Bitcoin Core are you using?

Bitcoin Core version v25.99.0-f01416e23c9c; for satellite

Operating system and version

Linux 13764k 6.5.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 08:37:40 +0000 x86_64 GNU/Linux

Machine specifications

SSDx3 with BTRFS in RAID3c configuration; issue also happens in RAID1 on BTRFS, haven't tried with EXT4

Please provide a tool with which you can embed blocks as UDP segments in a TS file so that bitcoinsatellite accepts the blocks.

I tried to embed blocks in TS packages with tsp and the mpeinject option so that bitcoinsatellite accepts the blocks. I used netcat for this. Unfortunately bitcoinsattellite does not accept these blocks. I then used Wireshark to analyze the TS file, which you kindly provided me, and saw that you packed the UDP segments into the TS packages very efficiently, so that the last fragment of a UDP segment and the first Fragment of the subsequent UDP segment are packed into one and the same TS packet (section packing).

I assume that you have developed your own tool for this? Is the tool open source and would you make it available on your git repository?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.