bcoin-org/bcoin

[warning] (chain) Unknown version bits in block

egorix opened this issue · 2 comments

I am doing initial sync at the moment and I wanted to ask if this is fine to receive this warning after adding almost every block.

Here's my log-level=info:

[info] (chain) Block 00000000000000000002d06573718060552157527b3ca669eeda5368d6487239 (627445) added to chain (size=1095965 txs=2693 time=2086.798355).
[warning] (chain) Unknown version bits in block 627446: 20c00000.
[info] (net) Received 1 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[info] (chain) Block 00000000000000000007357b05cf5d7f719f73a0a4b893468b03953757f3a023 (627446) added to chain (size=1142843 txs=2023 time=2057.954699).
[warning] (chain) Unknown version bits in block 627447: 3fffe000.
[info] (chain) Block 00000000000000000005d7b8a7fd2ea5b7b95322ab0d7a245b0be79be36b93b4 (627447) added to chain (size=1045581 txs=1490 time=1492.929095).
[info] (chain) Block 000000000000000000098393f223932804fbd29562b3f4227d24ae2eccd09891 (627448) added to chain (size=1220137 txs=1953 time=1869.418101).
[info] (net) Received 5 addrs (hosts=1000, peers=8) (82.221.128.81:8333).
[warning] (chain) Unknown version bits in block 627449: 3fff0000.
[info] (chain) Block 000000000000000000082eda9a0316fb72e05a9e06665c6ea284ef546c3889e6 (627449) added to chain (size=1308946 txs=3086 time=2358.050474).
[warning] (chain) Unknown version bits in block 627450: 27ffe000.
[info] (chain) Block 000000000000000000102413317d2b4284fb709fc0fecf4587009a1d9ac8fa4a (627450) added to chain (size=1280442 txs=3249 time=1831.4044880000001).
[warning] (chain) Unknown version bits in block 627451: 20c00000.
[info] (net) Received 3 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (chain) Block 00000000000000000010da5ea991d86df45d995eaaae95c60bb96158a66019c7 (627451) added to chain (size=1363017 txs=2351 time=1728.46933).
[warning] (chain) Unknown version bits in block 627452: 22438000.
[info] (net) Received 4 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (67.210.228.203:8333).
[info] (chain) Block 00000000000000000008c00e99589ae68534776398238baeb38102ecd64d8df4 (627452) added to chain (size=1282698 txs=3198 time=2551.445611).
[info] (net) Received 7 addrs (hosts=1000, peers=8) (89.230.96.42:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (chain) Block 0000000000000000000728fecf92bc66e2feff6510435b8445b701dd53aa6064 (627453) added to chain (size=1330619 txs=2509 time=2941.920772).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (82.221.128.81:8333).
[info] (chain) Block 0000000000000000000ab42e0f75f8a3d92bb1ab988afff02d39da9f15ab8082 (627454) added to chain (size=1346623 txs=2651 time=2922.7255569999998).
[warning] (chain) Unknown version bits in block 627455: 3fff0000.
[info] (chain) Block 0000000000000000000222c42758956091cba940d2af5e67947002d8635ea7e1 (627455) added to chain (size=1314939 txs=2559 time=3472.9914479999998).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[info] (chain) Block 00000000000000000002d34e4990579ad1ecad5d8d156cc564c826655315d607 (627456) added to chain (size=1089854 txs=2814 time=3337.740347).
[info] (chain) Block 00000000000000000000d8035e3f046de7732839484c1e23e07c831d0977d2f6 (627457) added to chain (size=1197086 txs=2214 time=3566.7544820000003).
[warning] (chain) Unknown version bits in block 627458: 27ffe000.
[info] (chain) Block 00000000000000000008bfca36ce92887dd5cba095ead24113f83d51fbbadd8f (627458) added to chain (size=1333354 txs=1763 time=2999.781215).
[warning] (chain) Unknown version bits in block 627459: 20400000.
[info] (chain) Block 0000000000000000000e45fb90cdee8155b40c04bab3769f59b32007d5344bda (627459) added to chain (size=1308972 txs=2824 time=1393.0842400000001).
[warning] (chain) Unknown version bits in block 627460: 20800000.
[info] (chain) Block 0000000000000000000253d7d7d267ed96107215c62429732b9954b91e2bf391 (627460) added to chain (size=1187801 txs=2028 time=2406.697785).
[warning] (chain) Unknown version bits in block 627461: 20400000.
[info] (chain) Block 0000000000000000000261a6a139dc92566de8dbc52799f9ad4a44d8e175dfc8 (627461) added to chain (size=1370580 txs=2839 time=102505.587558).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (82.221.128.81:8333).
[info] (net) Received 4 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[info] (net) Received 5 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (net) Received 9 addrs (hosts=1000, peers=8) (91.135.0.187:8333).
[info] (net) Received 2 addrs (hosts=1000, peers=8) (95.191.130.100:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (91.135.0.187:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (82.221.128.81:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[info] (net) Received 4 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[warning] (chain) Unknown version bits in block 627462: 20400000.
[info] (chain) Block 00000000000000000007ee9619d0e83daf4cf87c1e1f75a13c94fb858f2321b3 (627462) added to chain (size=1380872 txs=2799 time=4814.8965339999995).
[warning] (chain) Unknown version bits in block 627463: 27ffe000.
[info] (chain) Block 0000000000000000000854e6a521ddfb4d0393f50154667783bd644b8b57f02e (627463) added to chain (size=1389645 txs=2940 time=3071.873944).
[warning] (chain) Unknown version bits in block 627464: 3fff0000.
[info] (chain) Block 0000000000000000000fd16ee272a81bec3633d907108acba9b82d4982de86eb (627464) added to chain (size=1449093 txs=2448 time=4207.851621).
[info] (chain) Block 0000000000000000000f1598908199d9066c5cb2ca4e545900d2b7fce17be160 (627465) added to chain (size=1320976 txs=2613 time=2393.798842).
[info] (net) Received 7 addrs (hosts=1000, peers=8) (89.230.96.42:8333).
[warning] (chain) Unknown version bits in block 627466: 2000e000.
[info] (chain) Block 00000000000000000009fec9801ce28dbbe286cffa50f9b387e4001821e1cec2 (627466) added to chain (size=1266474 txs=2961 time=2180.247925).
[info] (chain) Block 000000000000000000067132185afe836ce38fc0499d46e210bc53cdcd08f65b (627467) added to chain (size=1165882 txs=2732 time=2312.205073).
[warning] (chain) Unknown version bits in block 627468: 20c00000.
[info] (chain) Block 00000000000000000003084d6dffb3e0207d1bf3aface24fdf38b77fde67ea1a (627468) added to chain (size=1179897 txs=3005 time=2079.758324).
[info] (net) Received 11 addrs (hosts=1000, peers=8) (67.210.228.203:8333).
[info] (chain) Block 0000000000000000000ebcc02a0d31a12fdf9609a53bd3d480294d9be315dff5 (627469) added to chain (size=1275830 txs=2141 time=2471.779152).
[info] (net) Received 2 addrs (hosts=1000, peers=8) (91.135.0.187:8333).
[info] (chain) Block 00000000000000000004b7b9409020ede6f21aaa4c737a2a70890fba129f0472 (627470) added to chain (size=1284620 txs=2706 time=2530.962621).
[warning] (chain) Unknown version bits in block 627471: 20400000.
[info] (chain) Block 0000000000000000000d4572957d698415118c196a5b867a8e0ae3d6083dfffa (627471) added to chain (size=1178499 txs=2599 time=1763.7423119999999).
[warning] (chain) Unknown version bits in block 627472: 20400000.
[info] (chain) Block 0000000000000000000e60787b0361d3a8964ad0147751c1e5511edfb35d781f (627472) added to chain (size=1363598 txs=1897 time=2462.719212).
[warning] (chain) Unknown version bits in block 627473: 20400000.
[info] (net) Received 1 addrs (hosts=1000, peers=8) (95.191.130.100:8333).
[info] (chain) Block 000000000000000000029058e7fdd19b433b21e61eb5770b47ecfd49c860d6cc (627473) added to chain (size=1693119 txs=750 time=2935.509676).
[warning] (chain) Unknown version bits in block 627474: 20002000.
[info] (chain) Block 00000000000000000009df79aff6cccd0bbe999accb97af08b0a81a052e1d0b1 (627474) added to chain (size=1380812 txs=1406 time=1798.385738).
[warning] (chain) Unknown version bits in block 627475: 3fffe000.
[info] (chain) Block 0000000000000000000b69254c7856d8fd3f794de4eac8a31c28b44bdbdbe381 (627475) added to chain (size=1315936 txs=2723 time=1753.02254).
[warning] (chain) Unknown version bits in block 627476: 20800000.
[info] (net) Received 1 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (chain) Block 0000000000000000000cac0a508befd7fd43a1634e26c8a63da931efaa9101a0 (627476) added to chain (size=1186350 txs=1784 time=1729.833753).
[info] (chain) Block 0000000000000000000740961df3388d07a9daa96362feeadb188f15d7f1482a (627477) added to chain (size=1148849 txs=1573 time=1054.838919).
[info] (chain) Block 000000000000000000031be086fe3e7002f7ac34a93aaab7b41c78e01d57edaa (627478) added to chain (size=1181560 txs=2403 time=1777.740558).
[warning] (chain) Unknown version bits in block 627479: 3fffe000.
[info] (chain) Block 0000000000000000000e1763d90e96fa874a000dd798d1e96bb89f8e3317679b (627479) added to chain (size=1398790 txs=2136 time=1081.791304).
[warning] (chain) Unknown version bits in block 627480: 2000e000.
[info] (chain) Block 0000000000000000000fbb9748d00439154d743a70b81757915a802eabd66660 (627480) added to chain (size=1135667 txs=1704 time=2403.315333).
[warning] (chain) Unknown version bits in block 627481: 2000e000.
[info] (chain) Block 000000000000000000103bc71088193e1d499d315980f540d2103d2367e671cd (627481) added to chain (size=1151930 txs=1591 time=1884.220525).
[info] (net) Received 6 addrs (hosts=1000, peers=8) (89.230.96.42:8333).
[warning] (chain) Unknown version bits in block 627482: 20400000.
[info] (chain) Block 0000000000000000000691c4e7993601ab7cdfe0b046b480c627161f92c7f5c9 (627482) added to chain (size=1228464 txs=2780 time=1876.576986).
[info] (chain) Block 000000000000000000101341b29da6e9c1efb78fc6ee4918f7b5eebbabf1694c (627483) added to chain (size=1416111 txs=1568 time=1946.819475).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (89.230.96.42:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[info] (chain) Block 0000000000000000000c6f7b7bce76aafc458fc7505256c86291c2f97ca7ed55 (627484) added to chain (size=1212709 txs=3194 time=2027.500108).
[info] (net) Received 4 addrs (hosts=1000, peers=8) (82.221.128.81:8333).
[warning] (chain) Unknown version bits in block 627485: 20800000.
[info] (net) Received 1 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[info] (net) Received 2 addrs (hosts=1000, peers=8) (67.210.228.203:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (67.210.228.203:8333).
[info] (chain) Block 0000000000000000000b330dbc0d0972084ba54642bbca3d5e856fc3f49c7dc8 (627485) added to chain (size=1428495 txs=2402 time=111367.802983).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (89.230.96.42:8333).
[info] (net) Received 5 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (82.221.128.81:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (82.221.128.81:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[info] (net) Received 4 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[info] (net) Received 4 addrs (hosts=1000, peers=8) (67.210.228.203:8333).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (net) Received 23 addrs (hosts=1000, peers=8) (67.210.228.203:8333).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (67.210.228.203:8333).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (net) Received 9 addrs (hosts=1000, peers=8) (82.221.128.81:8333).
[warning] (chain) Unknown version bits in block 627486: 2000e000.
[info] (net) Received 4 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[info] (chain) Block 0000000000000000000898a86832a03c8493baea7b3ff7983ec3a6fca5cb7cb5 (627486) added to chain (size=1379430 txs=2837 time=2308.618786).
[warning] (chain) Unknown version bits in block 627487: 3fff0000.
[info] (chain) Block 000000000000000000030b42809b2fa7af5980b7bfd54479b8048aed7086835d (627487) added to chain (size=1304600 txs=3079 time=1766.24263).
[warning] (chain) Unknown version bits in block 627488: 20400000.
[info] (net) Received 1 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (chain) Block 00000000000000000004c27fba7a9b5f1477a01a9dcfd3edaa6440d7ac171bda (627488) added to chain (size=1284065 txs=2890 time=2173.863232).
[warning] (chain) Unknown version bits in block 627489: 20400000.
[info] (net) Received 2 addrs (hosts=1000, peers=8) (67.210.228.203:8333).
[info] (chain) Block 00000000000000000000736b4ee2bacc42111a8265ec98afda70191b0702b798 (627489) added to chain (size=1285743 txs=1676 time=2120.822326).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (89.230.96.42:8333).
[warning] (chain) Unknown version bits in block 627490: 20400000.
[info] (chain) Block 000000000000000000071563f2e81c80b944b6d7ff6a2c3ee4668303fbf257b7 (627490) added to chain (size=1245192 txs=1835 time=2155.617333).
[warning] (chain) Unknown version bits in block 627491: 20c00000.
[info] (chain) Block 00000000000000000006cf0c2052a26dd033aa5105e3276256ef845544e3b564 (627491) added to chain (size=1237642 txs=2556 time=2422.231596).
[info] (chain) Block 0000000000000000000a4f9a612025eeb2add7e2096ea63d8fcfc7c6ba7f49b6 (627492) added to chain (size=1113969 txs=3060 time=3273.695674).
[info] (chain) Block 0000000000000000000e68509881330ef548c629d6615e3cd91355767f400d47 (627493) added to chain (size=1239733 txs=3016 time=2835.333563).
[info] (chain) Block 0000000000000000001131321ea1e7416cf012accd5c2b680ebe3cf8de4d3996 (627494) added to chain (size=1261338 txs=3038 time=2463.231607).
[info] (net) Received 13 addrs (hosts=1000, peers=8) (89.230.96.42:8333).
[warning] (chain) Unknown version bits in block 627495: 20c00000.
[info] (chain) Block 00000000000000000003d24531a9187da93417cf44bc086930834070c96be946 (627495) added to chain (size=1256100 txs=2451 time=1949.767615).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[info] (chain) Block 0000000000000000000dfd9382d5fa9d39b635745817e83e4da9366937067d4c (627496) added to chain (size=1183407 txs=2758 time=1785.072647).
[warning] (chain) Unknown version bits in block 627497: 22bd6000.
[info] (chain) Block 000000000000000000011e66c8f568558750ce1396630e1fa49d3ecd440b1e9b (627497) added to chain (size=1238256 txs=2741 time=2336.828175).
[warning] (chain) Unknown version bits in block 627498: 20c00000.
[info] (chain) Block 000000000000000000028ed9f86d963664f13ba525d974ff654e5985bd3f4046 (627498) added to chain (size=1258884 txs=2619 time=1683.949981).
[info] (chain) Block 0000000000000000000e5db22af8d1bdfb153927b3647cfe0671445910e9df11 (627499) added to chain (size=1250245 txs=2389 time=1891.678741).
[info] (net) Received 5 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[warning] (chain) Unknown version bits in block 627500: 20800000.
[info] (chain) Block 0000000000000000000a84f5c1c76bda088982c32d7d9b6c6ac318e47dbcb219 (627500) added to chain (size=1235102 txs=2803 time=2321.559731).
[info] (chain) Block 000000000000000000108f924215768081300a4ebd478704fcab33e96ccbddda (627501) added to chain (size=1239206 txs=2636 time=2888.424277).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (89.230.96.42:8333).
[warning] (chain) Unknown version bits in block 627502: 20400000.
[info] (chain) Block 00000000000000000009531aecc4555564dbff19155133ee62111c13b73a7e4e (627502) added to chain (size=1280188 txs=2147 time=1747.289344).
[warning] (chain) Unknown version bits in block 627503: 20800000.
[info] (chain) Block 0000000000000000000e6e9c64ad6b75246c0782413d069f0f096dccd44525ab (627503) added to chain (size=1306558 txs=1624 time=1764.058251).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (137.226.34.46:8333).
[info] (net) Received 4 addrs (hosts=1000, peers=8) (204.15.11.8:8333).
[warning] (chain) Unknown version bits in block 627504: 20800000.
[info] (chain) Block 0000000000000000000aafb108afbd795ff6afcb69dae8be4ad3ea5a027cab5e (627504) added to chain (size=1509261 txs=2047 time=1521.008255).
[warning] (chain) Unknown version bits in block 627505: 3fff0000.
[info] (chain) Block 00000000000000000010ba064273b5bb547c70b9bf6e0a028c1804fc2ff14dc6 (627505) added to chain (size=1313804 txs=2072 time=2600.279396).
[info] (net) Received 3 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[warning] (chain) Unknown version bits in block 627506: 20800000.
[info] (chain) Block 0000000000000000000ec312892eadc1da5d90f20a1be85a921582db6a85c284 (627506) added to chain (size=1169868 txs=1045 time=5216.784415).
[warning] (chain) Unknown version bits in block 627507: 20c00000.
[info] (chain) Block 00000000000000000001cb0ded60b5793c15aa84b3b2701ff70a49d3906da14e (627507) added to chain (size=1302809 txs=2923 time=1980.194219).
[info] (chain) Block 0000000000000000000b3354e7786f510dad76b40024bc71dfc86cf40835d305 (627508) added to chain (size=1199053 txs=2645 time=2020.084659).
[info] (net) Received 1 addrs (hosts=1000, peers=8) (217.20.130.72:8333).
[warning] (chain) Unknown version bits in block 627509: 2000e000.

I am running bcoin in docker container. This machine might have several reboots during sync if this information is important.

And this is the config:

# main, testnet
network: main

# Data directory
prefix: /data

workers: true
workers-size: 8

log-file: true
log-level: info

max-files: 8192

prune: false
checkpoints: true
index-address: true
index-tx: true

http-host: 0.0.0.0
api-key: <hidden>

Please, advise if this is normal? I also noticed that sync is going pretty slow, already for a week or so, but I am running it on 8-core VPS, which should be pretty powerful, and the chain is on SSD volume, taking already 723 GB, being just on 627509 block... Is it also normal?

Version bits

https://bitcoin.stackexchange.com/questions/85774/warning-unknown-block-versions-are-being-mined-unknown-rules-may-be-active

https://bitcoin.stackexchange.com/questions/56795/warning-unknown-block-versions-being-mined-its-possible-unknown-rules-are-in

Sync time

I've found VPS notoriously slow for blockchain syncing, probably due to bottlenecked network access, especially on a shared server. 8-core CPU is nice and SSD is definitely required so it's probably this.

Config file

Also, where are you getting these settings for your config file? You are redundantly setting many default options and your http-host is very dangerous - anyone on the internet can reset your node or worse, steal your money!

network: main <<< DEFAULT

# Data directory
prefix: /data

workers: true <<< DEFAULT
workers-size: 8 <<< should be # of CPUs available by default

log-file: true <<< DEFAULT
log-level: info <<< DEFAULT

max-files: 8192 <<< Why are you setting this so high?

prune: false <<< DEFAULT
checkpoints: true <<< DEFAULT
index-address: true
index-tx: true

http-host: 0.0.0.0 <<< EXTREMELY DANGEROUS
api-key: <hidden>

version bits:

This warning is triggered because miners use overt Asicboost, which uses the block version number as a nonce. This means that blocks are produced with random version numbers, which triggers this warning.
The longer explanation is that the bits in the version field are used for signalling for rule changes (BIP9 / BIP135), in which the top three bits are reserved, and AsicBoost miners are using the last 16 bits.

suggestions:

  • Add a meta warning that "this warning is probably nonsense, but could be serious".
  • Drop the warning (This warning was removed from Bitcoin Core for 0.18.0 in bitcoin/bitcoin#15471.)