signum-node icon indicating copy to clipboard operation
signum-node copied to clipboard

Wrong blocks are added on node exit

Open PSLLSP opened this issue 1 year ago • 5 comments

Signum Node version v3.8.2, Linux Mint 22 amd64

This is just a test node. I run headless node.

First I noticed my node was synchronizing with TESTNET but node.properties was not configured for testnet... I used the default values and testnet is not active in the default configuration (it implies I use H2 DB).

I stopped node, deleted directory "DB" and started new sync.

I watch sync progress with Phoenix wallet at http://localhost:8125/phoenix/#/blocks

I noticed that when I stop node with "CTRL+C" in the console then Phoenix wallet shows that the last blocks are added from the "top" of the blockchain, not old blocks that should be there. I believe it is repeatable, I noticed this behavior two times. I see that one or more blocks could be added. This is example from my last test, only one "top" block was added. Sync progress was at block with height 18598 but block with height 1328414 was added! This is the evidence, it is not well readable because formatting is not good but the information is there (coped from http://localhost:8125/phoenix/#/blocks):

Block
Height
Transactions

schedule
 Date

local_atm
 Amount

compare_arrows
 Fee

money_off
 Burnt Fee

money
 Avg. Commitment

17535081559236787544
1328414
7
a minute ago
Ꞩ 287.61099353
Ꞩ 1.147
Ꞩ 1.067
Ꞩ 32,055.57911552

3544185019749600973
18598
14
10 years ago
Ꞩ 4,095.68182483
Ꞩ 14
Ꞩ 0
Ꞩ 1,000

12083828670788944202
18597
7
10 years ago
Ꞩ 1,798.84870378
Ꞩ 7
Ꞩ 0
Ꞩ 1,000

5838845880975968876
18596
23
10 years ago
Ꞩ 28,606.80101739
Ꞩ 23
Ꞩ 0
Ꞩ 1,000

PSLLSP avatar Oct 04 '24 12:10 PSLLSP