celestiaorg / go-header

Go library with all the services needed to request, sync and store blockchain headers.
Apache License 2.0
19 stars 18 forks source link

header: invalid network header for arabica-10 #102

Closed Bidon15 closed 1 year ago

Bidon15 commented 1 year ago

Header Version

v0.3.0

OS

linux

Install tools

  1. git clone celestia-node repo with v0.11.0-rc10 tag
  2. make go-install or helm install da-light (if you are using celestia-helm-charts)

Others

No response

Steps to reproduce it

celestia light init --p2p.network arabica
celestia light start --p2p.network arabica

Expected result

headers are synced and daser is started

Actual result

invalid network header error logs from start

2023-09-05T11:07:25.455+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45472, "hash_of_invalid": "03F4B08A5A35D96405E47CEEED4AE72EFCC2129F9EB818EDAA222EDBFFA0BDCD", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45472' - current '1' >= threshold '41760'"}

Relevant log output

celestia light start --p2p.network arabica --core.ip http://consensus-validator.celestia-arabica-10.com
2023-09-05T11:07:24.830+0200    INFO    node    nodebuilder/module.go:24    Accessing keyring...
2023-09-05T11:07:24.846+0200    INFO    module/state    state/keyring.go:40 constructed keyring signer  {"backend": "test", "path": "/Users/bidon4/.celestia-light-arabica-10/keys", "key name": "my_celes_key", "chain-id": "arabica-10"}
2023-09-05T11:07:24.894+0200    INFO    badger  v4@v4.1.0/levels.go:171 All 0 tables opened in 0s

2023-09-05T11:07:24.899+0200    INFO    badger  v4@v4.1.0/discard.go:66 Discard stats nextEmptySlot: 0

2023-09-05T11:07:24.899+0200    INFO    badger  v4@v4.1.0/db.go:363 Set nextTxnTs to 0
2023-09-05T11:07:25.171+0200    INFO    module/header   header/config.go:58 No trusted peers in config, initializing with default bootstrappers as trusted peers
2023-09-05T11:07:25.180+0200    INFO    header/p2p  p2p/exchange.go:81  client: starting client {"protocol ID": "/arabica-10/header-ex/v0.0.3"}
2023-09-05T11:07:25.351+0200    INFO    fraudserv   fraudserv/helpers.go:29 joining topic   {"id": "/arabica-10/fraud-sub/badencodingv0.1/v0.0.1"}
2023-09-05T11:07:25.352+0200    INFO    fraudserv   fraudserv/service.go:105    starting fraud proof service    {"protocol ID": "/arabica-10/fraud/v0.0.1"}
2023-09-05T11:07:25.405+0200    INFO    header/store    store/store.go:127  initialized head    {"height": 1, "hash": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393"}
2023-09-05T11:07:25.406+0200    INFO    header/p2p  p2p/subscriber.go:41    joining topic   {"topic ID": "/arabica-10/header-sub/v0.0.1"}
2023-09-05T11:07:25.455+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45472, "hash_of_invalid": "03F4B08A5A35D96405E47CEEED4AE72EFCC2129F9EB818EDAA222EDBFFA0BDCD", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45472' - current '1' >= threshold '41760'"}
2023-09-05T11:07:25.605+0200    INFO    header/p2p  p2p/server.go:66    server: listening for inbound header requests   {"protocol ID": "/arabica-10/header-ex/v0.0.3"}
2023-09-05T11:07:25.606+0200    WARN    das das/daser.go:92 checkpoint not found, initializing with height 1
2023-09-05T11:07:25.609+0200    INFO    das das/daser.go:105    starting DASer from checkpoint: SampleFrom: 1, NetworkHead: 1
2023-09-05T11:07:25.610+0200    INFO    rpc rpc/server.go:86    server started  {"listening on": "0.0.0.0:26658"}
2023-09-05T11:07:25.611+0200    INFO    node    nodebuilder/node.go:109 

/_____/  /_____/  /_____/  /_____/  /_____/

Started celestia DA node
node type:  light
network:    arabica-10

/_____/  /_____/  /_____/  /_____/  /_____/

2023-09-05T11:07:25.611+0200    INFO    das das/worker.go:88    finished sampling headers   {"type": "catchup", "from": 1, "to": 1, "errors": 0, "finished (s)": 0.001236916}
The p2p host is listening on:
*  /ip4/10.10.2.8/tcp/2121/p2p/12D3KooWEYJunMdHAiZtHre9fWTBWQSU6huAutA4aKLCcqcBbk1g
*  /ip4/10.10.2.8/udp/2121/quic-v1/p2p/12D3KooWEYJunMdHAiZtHre9fWTBWQSU6huAutA4aKLCcqcBbk1g
*  /ip6/::1/tcp/2121/p2p/12D3KooWEYJunMdHAiZtHre9fWTBWQSU6huAutA4aKLCcqcBbk1g
*  /ip6/::1/udp/2121/quic-v1/p2p/12D3KooWEYJunMdHAiZtHre9fWTBWQSU6huAutA4aKLCcqcBbk1g

2023-09-05T11:07:30.134+0200    INFO    basichost   basic/natmgr.go:112 DiscoverNAT error:no NAT found
2023-09-05T11:07:31.140+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45473, "hash_of_invalid": "4AA6E9EC79AA14C51CC6AE7F789EBF48987370FC5A0D38D9E129724346CB80DA", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45473' - current '1' >= threshold '41760'"}
2023-09-05T11:07:41.677+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45474, "hash_of_invalid": "1ADA349C271380F20ADC6D03A1D0240BCD08838CC803AA31F00B677E65FF140C", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45474' - current '1' >= threshold '41760'"}
2023-09-05T11:07:52.859+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45475, "hash_of_invalid": "F09E4A0C4635956BEEC9F6CAEB40628F96C0317DA4C47A015FE85C1ACEDC84A5", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45475' - current '1' >= threshold '41760'"}
2023-09-05T11:08:03.876+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45476, "hash_of_invalid": "4A81208D72A9B0E547730F1C4091E1112BAFBFE63E358D3E7E602971B114E3CF", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45476' - current '1' >= threshold '41760'"}
2023-09-05T11:08:14.864+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45477, "hash_of_invalid": "926E5A02F3D9A4D143980F9EBE113E9BAD3FE07659B306EC361795AEF1DF9599", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45477' - current '1' >= threshold '41760'"}
2023-09-05T11:08:25.858+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45478, "hash_of_invalid": "6872C7519DFF3E8E09CB1620AA2002512C971EE76FF83EC3FE4035F15D9F7F38", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45478' - current '1' >= threshold '41760'"}
2023-09-05T11:08:36.864+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45479, "hash_of_invalid": "D74A57A9CFB50FE41DEB39A566A677871632DCEFD55DC188B1436AB1BACD5CCE", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45479' - current '1' >= threshold '41760'"}
2023-09-05T11:08:48.136+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45480, "hash_of_invalid": "888A1B00C6F58AEC6767268DF4F3749958F4CF1463B65CA0BB29C6CA0D932DA5", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45480' - current '1' >= threshold '41760'"}
2023-09-05T11:08:58.984+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45481, "hash_of_invalid": "8DD55260BCD0522B20C24399BC86077F38AA58FBC0BD18157EEA1845DBF12B60", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45481' - current '1' >= threshold '41760'"}
2023-09-05T11:09:09.858+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45482, "hash_of_invalid": "2521771BE9BC1F852291EA3F8B0ADA3AC98051093B0B1B7AF221DE6426B30BA6", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45482' - current '1' >= threshold '41760'"}
2023-09-05T11:09:21.124+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45483, "hash_of_invalid": "BAE6DC9423EF0CAD4501F26776C381676A2571A1B1FAF0122AA77D9407688D9D", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45483' - current '1' >= threshold '41760'"}
2023-09-05T11:09:32.130+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45484, "hash_of_invalid": "9AA949BF50CCE65C4A8957375C99A09D58FC770F426F0A7058364943F9B19C90", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45484' - current '1' >= threshold '41760'"}
2023-09-05T11:09:43.135+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45485, "hash_of_invalid": "4ADFA5386CEBD6E17DFE531BEF25EDEBEF9BFF73FB287183990A141D855E7747", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45485' - current '1' >= threshold '41760'"}
2023-09-05T11:09:54.127+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45486, "hash_of_invalid": "043A4BA90858C0AC3E7C6921C8DD3F61A325BDB0BF33B6B6BD1A2110ED84516C", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45486' - current '1' >= threshold '41760'"}
2023-09-05T11:10:05.128+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45487, "hash_of_invalid": "6CD7A6ED0F2D0F3E8833493A65C99A8005E82B238D81FA046288E027598F5102", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45487' - current '1' >= threshold '41760'"}
2023-09-05T11:10:16.351+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45488, "hash_of_invalid": "A68BD6359B322D53776C5D7C34897300C3B87EC18E9A92DBE8B97CF69EF39EB6", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45488' - current '1' >= threshold '41760'"}
2023-09-05T11:10:27.347+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45489, "hash_of_invalid": "2AD129919EC0F92B5E3FB2921A576325D5B61BE0A5EA8ADD1F21A274F420538E", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45489' - current '1' >= threshold '41760'"}
2023-09-05T11:10:38.348+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45490, "hash_of_invalid": "13869EF693BB63A8118596E76CF0D4582548405BE48F8228A1A84793A11DDEBB", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45490' - current '1' >= threshold '41760'"}
2023-09-05T11:10:49.490+0200    ERROR   header/sync sync/sync_head.go:175   invalid network header  {"height_of_invalid": 45491, "hash_of_invalid": "4BD4F4E0E3498CE1018834DD1B4C7F8E4A6AF5C08935C4BB5EC22BF9C11643E9", "height_of_subjective": 1, "hash_of_subjective": "5904E55478BA4B3002EE885621E007A2A6A2399662841912219AECD5D5CBE393", "reason": "header height is far from future: '45491' - current '1' >= threshold '41760'"}
^C2023-09-05T11:10:55.359+0200  INFO    rpc rpc/server.go:104   server stopped
2023-09-05T11:10:55.360+0200    INFO    das das/store.go:59 stored checkpoint to disk: SampleFrom: 2, NetworkHead: 1
2023-09-05T11:10:55.361+0200    INFO    das das/store.go:59 stored checkpoint to disk: SampleFrom: 2, NetworkHead: 1
2023-09-05T11:10:55.361+0200    INFO    header/p2p  p2p/server.go:75    server: stopping server
2023-09-05T11:10:55.374+0200    INFO    badger  v4@v4.1.0/db.go:541 Lifetime L0 stalled for: 0s

2023-09-05T11:10:55.391+0200    INFO    badger  v4@v4.1.0/db.go:619 
Level 0 [ ]: NumTables: 01. Size: 1.5 KiB of 0 B. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 64 MiB
Level 1 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB
Level 2 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB
Level 3 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB
Level 4 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB
Level 5 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB
Level 6 [B]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 2.0 MiB
Level Done

Notes

https://app.warp.dev/block/fqodGX8rNTUxn78xE0CWho

renaynay commented 1 year ago

Fixed in latest release