MinaProtocol / mina

Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
https://minaprotocol.com
Apache License 2.0
2k stars 529 forks source link

Testworld 2.0 Syncing node to height 1 #14774

Open olton opened 11 months ago

olton commented 11 months ago

Preliminary Checks

Description

Node synced to height 1 (one) after deleting the .mina-config folder and restarting. If I restart the node again, the node is correctly bootstrapped.

Re: node without running block producer, used for archive node

Steps to Reproduce

  1. Stop mina node
  2. Delete folder .mina-config
  3. Start node

Expected Result

Block height: N Max observed block height: N

Actual Result

Block height: 1 Max observed block height: 1

How frequently do you see this issue?

Rarely

What is the impact of this issue on your ability to run a node?

Low

Status

Mina daemon status
-----------------------------------

Max observed block height:              22930
Max observed unvalidated block height:  22930
Local uptime:                           10m17s
Chain id:                               332c8cc05ba8de9efc23a011f57015d8c9ec96fac81d5d3f7a06969faf4bce92
Git SHA-1:                              4a0fff9a2966d14b7a1c0ec00785cea9096b5341
Configuration directory:                /home/olton/.mina-config
Peers:                                  56
User_commands sent:                     0
SNARK worker:                           None
SNARK work fee:                         100000000
Sync status:                            Bootstrap
Block producers running:                0
Coinbase receiver:                      Block producer
Consensus time now:                     epoch=4, slot=4666
Consensus mechanism:                    proof_of_stake
Consensus configuration:
        Delta:                     0
        k:                         290
        Slots per epoch:           7140
        Slot duration:             3m
        Epoch duration:            14d21h
        Chain start timestamp:     2023-10-17 16:01:01.000000Z
        Acceptable network delay:  3m

Addresses and ports:
        External IP:    
        Bind IP:        0.0.0.0
        Libp2p PeerID:  12D3KooWDLNXPq28An4s2QaPZX5ftem1AfaCWuxHHJq97opeWxLy
        Libp2p port:    8302
        Client port:    8301

Metrics:
        block_production_delay:             7 (0 0 0 0 0 0 0)
        transaction_pool_diff_received:     6
        transaction_pool_diff_broadcasted:  0
        transactions_added_to_pool:         0
        transaction_pool_size:              0
        snark_pool_diff_received:           13
        snark_pool_diff_broadcasted:        0
        pending_snark_work:                 0
        snark_pool_size:                    0

Additional information

No response

olton commented 10 months ago

olton@berkeley:~$ mina client status

Mina daemon status
-----------------------------------

Global number of accounts:                     200001
Block height:                                  1
Max observed block height:                     1
Max observed unvalidated block height:         0
Local uptime:                                  7m24s
Ledger Merkle root:                            jwprraP9mpU1iPAXLqPMbN1vDCcCJThQcEbz6PpRfeSZ3wgAT7b
Protocol state hash:                           3NKeF7pcS99PHV59bCqTt3XghbgzuKJ97boU6YMDa82bh3NXhcP7
Chain id:                                      332c8cc05ba8de9efc23a011f57015d8c9ec96fac81d5d3f7a06969faf4bce92
Git SHA-1:                                     4a0fff9a2966d14b7a1c0ec00785cea9096b5341
Configuration directory:                       /home/olton/.mina-config
Peers:                                         114
User_commands sent:                            0
SNARK worker:                                  None
SNARK work fee:                                100000000
Sync status:                                   Synced
Catchup status:
        Finished:  1

Block producers running:                       0
Coinbase receiver:                             Block producer
Best tip consensus time:                       epoch=0, slot=0
Best tip global slot (across all hard-forks):  0
Consensus time now:                            epoch=5, slot=5116
Consensus mechanism:                           proof_of_stake
Consensus configuration:
        Delta:                     0
        k:                         290
        Slots per epoch:           7140
        Slot duration:             3m
        Epoch duration:            14d21h
        Chain start timestamp:     2023-10-17 16:01:01.000000Z
        Acceptable network delay:  3m

Addresses and ports:
        External IP:    
        Bind IP:        0.0.0.0
        Libp2p PeerID:  12D3KooWDLNXPq28An4s2QaPZX5ftem1AfaCWuxHHJq97opeWxLy
        Libp2p port:    8302
        Client port:    8301

Metrics:
        block_production_delay:             7 (0 0 0 0 0 0 0)
        transaction_pool_diff_received:     0
        transaction_pool_diff_broadcasted:  0
        transactions_added_to_pool:         0
        transaction_pool_size:              0
        snark_pool_diff_received:           8
        snark_pool_diff_broadcasted:        0
        pending_snark_work:                 0
        snark_pool_size:                    0