-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
32-bit client cannot download blockchain #64
Comments
Hey, |
I downloaded ZIP archive with XMG blockchain, extracted it. 32-bit client still cannot sync. The last block it accepts is block 4147200, block 4147201 is rejected with error 4147200 hash
My explanation of these errors is that wallet code on 32-bit system uses different arithmetic, maybe some operations overflows and that is why it calculates different result than wallet running on 64-bit system where registers are 64-bit wide and so some operation with ADD, SUB, MUL or SHIFT instructions can lead to different result... The Magi consensus algo was not tested on 32-bit architecture... Was it designed for Raspberry PI computers? Maybe I can test it on some older RPI that has just 32-bit ARM, like RPI2 or RPI zero. |
This is an interesting issue. Have you tried recompiling the source? |
I tried to compile from source but I failed, there are old dependencies and it just doesn't work on modern system, like Debian 11... I am not experienced enough to find and fix all issues. That is another reason why I will not try it on RPI2 or RPI4; there is no release for ARM and compilation is challenging... I found note that MAGI is based on Peercoin (PPC). There is no release file x86 for PPC, so I tried to build one. That was an easy process, I built I try to synchronize with Magi with 64-bit client, node runs more than two weeks and synchronization is still not finished, it is so slow process and it was not easy to start the process, to find nodes with valid blockchain data... But it seems that 64-bit MAGI client can sync, it just takes time... Bootstrap file is real help but it is not well documented and I wanted to see if client can sync from block 0. |
Magi is unmaintained and the network is quite small. Thats exactly why syncing without the blockchain archive will take a very long time. However, with the 64 bit client, you should be able to sync from block 0 (wouldnt really reccomend that tho) https://github.com/BastelPichi/magi/tree/compability this repo is somewhat maintained and should, with minimal changes, compile on a up-to-date system. Dont think the issue would be fixed here tho, as this mostly took care of some dependency issues. You are going to have to install berkely DB manually - see https://github.com/BastelPichi/berkely-db-fixed/blob/main/install.sh this script. With this you should be able to get it running at least on the raspberry pi. If you want help faster, feel free to join our discord server. Just an thought: ive successfully used magi on an rpi3 in the past, which is also 32 bit. So maybe it really just is an compilation error?! |
m-wallet-1.4.6.2-linux, 32-bit; release
I tried tried to download blockcain from block 0 but there is a problem in 2016, this client rejects block 735357 that is part of blockchain; information from debug.log:
Situation in block explorer:
block 735356 d6b32c1b36267903c199ad8ce433896f5565c2bdd8e404844e6abdf5e599e915
block 735357 000000000add6798d2dd9c62b16d7a74a9a1b272ba09de409ce06dc9bc8fcc2f
block 735357
The text was updated successfully, but these errors were encountered: