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
1.98k stars 525 forks source link

Mina Berkeley, Archive Node: NULL value for parent_id #14103

Open olton opened 11 months ago

olton commented 11 months ago

Preliminary Checks

Description

For block 3NKL3e7XuVX8GThpFbFfTj8EjdgLEbQ94NQCQrtoxL9EKVHyaNnC, a NULL value was written to the parent_id field in the database.

Steps to Reproduce

No steps

Expected Result

Parent hash for block is 3NKz27xPQBbasCBjn6uVhBsksFajKcs6iJLsYe4h5Jvat61GdRYC

Actual Result

NULL

How frequently do you see this issue?

Rarely

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

Low

Status

olton@berkeley:~/minataur2$ mina client status
Mina daemon status
-----------------------------------

Global number of accounts:                     17506
Block height:                                  19628
Max observed block height:                     19628
Max observed unvalidated block height:         19628
Local uptime:                                  4h14m17s
Ledger Merkle root:                            jxMb9fjT1PHBxbBgE99VkuHA7voFrhvp5vLD8pKd6ycZPErb6PL
Protocol state hash:                           3NL8JZdK4BX8fShoaovjKhEnofyKv4VJP2teu3dqxA8aKgF113Vo
Chain id:                                      667b328bfc09ced12191d099f234575b006b6b193f5441a6fa744feacd9744db
Git SHA-1:                                     bfd1009abdbee78979ff0343cc73a3480e862f58
Configuration directory:                       /home/olton/.mina-config
Peers:                                         34
User_commands sent:                            0
SNARK worker:                                  None
SNARK work fee:                                100000000
Sync status:                                   Synced
Catchup status:
        To build breadcrumb:           0
        To initial validate:           0
        Finished:                      73
        To download:                   0
        Waiting for parent to finish:  0
        To verify:                     0

Block producers running:                       0
Coinbase receiver:                             Block producer
Best tip consensus time:                       epoch=4, slot=4813
Best tip global slot (across all hard-forks):  33373
Consensus time now:                            epoch=4, slot=4815
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-07-05 19: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:     520
        transaction_pool_diff_broadcasted:  0
        transactions_added_to_pool:         448
        transaction_pool_size:              15

Additional information

No response

psteckler commented 11 months ago

Is the block with that parent hash in the database?

If not, can you manually add it from a precomputed block?