ProsusCorp / ProsusMoney

The Chilean Cryptocurrency
http://www.prosusmoney.cl
9 stars 13 forks source link

error al compilar #6

Closed equisde closed 6 years ago

equisde commented 6 years ago

puedo compilar otros algoritmos pero con prous me pasa esto :c

[ 34%] Building CXX object src/CMakeFiles/CryptoNoteCore.dir/CryptoNoteCore/Currency.cpp.o
/root/prosus/src/CryptoNoteCore/Currency.cpp: In member function ‘bool CryptoNote::Currency::generateGenesisBlock()’:
/root/prosus/src/CryptoNoteCore/Currency.cpp:75:38: error: ‘GENESIS_COINBASE_TX_HEX’ was not declared in this scope
   std::string genesisCoinbaseTxHex = GENESIS_COINBASE_TX_HEX;
                                      ^
src/CMakeFiles/CryptoNoteCore.dir/build.make:446: recipe for target 'src/CMakeFiles/CryptoNoteCore.dir/CryptoNoteCore/Currency.cpp.o' failed
make[3]: *** [src/CMakeFiles/CryptoNoteCore.dir/CryptoNoteCore/Currency.cpp.o] Error 1
make[3]: Leaving directory '/root/prosus/build/release'
CMakeFiles/Makefile2:798: recipe for target 'src/CMakeFiles/CryptoNoteCore.dir/all' failed
make[2]: *** [src/CMakeFiles/CryptoNoteCore.dir/all] Error 2
make[2]: Leaving directory '/root/prosus/build/release'
Makefile:94: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/prosus/build/release'
Makefile:20: recipe for target 'build-release' failed
make: *** [build-release] Error 2
root@mail:~/prosus#
yerkobits commented 6 years ago

Gracias por tu aviso. Eso sucede porque estás compilando la versión que está "en proceso". CLONAR no es lo mismo que DESCARGAR. CLONAR toma lo que está en la pestaña RELEASE, es decir, la versión que funciona. DESCARGAR toma lo que está en la pestaña principal, es decir, lo que está editándose.

yerkobits commented 6 years ago

De todos modos, corregí el archivo para que puedas compilar la versión DESCARGA (no el CLONE) https://github.com/ProsusCorp/prosus/blob/master/src/CryptoNoteCore/Currency.cpp

yerkobits commented 6 years ago

Por último: algunas versiones ya compiladas y actualizadas están en... www.prosus.money/descargas

Que tengas un buen día :)

equisde commented 6 years ago

clone el ropositorio en el servidor no lo descargue si es a lo que te refieres gracias por el archivo voy a revisar

equisde commented 6 years ago

no lo gre compilar me da error y al descargar desde la web que me diste me dice lo siguiente

root@ubuntu:~/prosus/build/release/src# ./prosus-daemon
22:46:32.484448 INFO prosus v0.5.2
22:46:32.484617 INFO Module folder: ./prosus-daemon
22:46:32.485652 INFO Initializing p2p server...
22:46:32.485800 INFO Binding on 0.0.0.0:16180
22:46:32.485873 INFO Net service binded on 0.0.0.0:16180
22:46:32.485920 INFO Attempting to add IGD port mapping.
22:46:34.234035 INFO Added IGD port mapping.
22:46:34.234155 INFO P2p server initialized OK
22:46:34.234211 INFO Initializing core...
22:46:34.234423 INFO Blockchain not loaded, generating genesis block.
22:46:34.234541 ERROR Coinbase transaction doesn't use full amount of block reward: spent 87.96093022207, block reward is 703.68744177663
22:46:34.234595 INFO Block <4a873a001d7f7521aae8e011fd34551f95eb83a66a9ce65fc7721f9ecc66bd5c> has invalid miner transaction
22:46:34.234637 ERROR Failed to add genesis block to blockchain
22:46:34.234697 ERROR Failed to initialize blockchain storage
22:46:34.234758 ERROR Failed to initialize core
22:46:34.234962 INFO Mining has been stopped, 0 finished
SwappedVector cache hits: 0, misses: 0 (-nan%)
root@ubuntu:~/prosus/build/release/src#
equisde commented 6 years ago

ya esta muchas gracias por tu tiempo

root@ubuntu:~/Prosus_Money# ./prosus-daemon
23:02:09.417095 INFO prosus v0.5.4
23:02:09.417235 INFO Module folder: ./prosus-daemon
23:02:09.418157 INFO Initializing p2p server...
23:02:09.418267 INFO Binding on 0.0.0.0:16180
23:02:09.418321 INFO Net service binded on 0.0.0.0:16180
23:02:09.418364 INFO Attempting to add IGD port mapping.
23:02:11.532454 INFO Added IGD port mapping.
23:02:11.532568 INFO P2p server initialized OK
23:02:11.532622 INFO Initializing core...
23:02:11.532873 INFO Loading blockchain...
23:02:11.532986 WARNING No actual blockchain cache found, rebuilding internal structures...
23:02:11.533105 INFO Height 0 of 3150
23:02:11.560145 INFO Height 1000 of 3150
23:02:11.586833 INFO Height 2000 of 3150
23:02:11.612027 INFO Height 3000 of 3150
23:02:11.616310 INFO Rebuilding internal structures took: 0.0832066
23:02:11.616389 INFO Loading blockchain indices for BlockchainExplorer...
23:02:11.616448 WARNING No actual blockchain indices for BlockchainExplorer found, rebuilding...
23:02:11.616485 INFO Height 0 of 3150
23:02:11.636606 INFO Height 1000 of 3150
23:02:11.657882 INFO Height 2000 of 3150
23:02:11.678844 INFO Height 3000 of 3150
23:02:11.682602 INFO Rebuilding blockchain indices took: 0.0661174
23:02:11.682980 INFO Blockchain initialized. last block: 3149, d536.h10.m12.s2 time ago, current difficulty: 40
23:02:11.683035 INFO Core initialized OK
23:02:11.683154 INFO Starting core rpc server on address 127.0.0.1:16190
23:02:11.683295 INFO Core rpc server started ok
23:02:11.683364 INFO Starting p2p net loop...
23:02:11.683396 INFO Starting node_server
23:02:12.509000 INFO [13.57.179.95:16180 OUT] Sync data returned unknown top block: 3149 -> 247857 [244708 blocks (339 days) behind]
23:02:12.509000 INFO SYNCHRONIZATION started
23:02:14.071547 INFO CHECKPOINT PASSED FOR HEIGHT 3150 <6571b301402d7b677c53333cdb59f811dc902ac63ab5262ece30a4f66940f8f6>
23:02:17.554049 INFO [45.7.229.167:16180 OUT] Sync data returned unknown top block: 4949 -> 247857 [242908 blocks (337 days) behind]
23:02:17.554049 INFO SYNCHRONIZATION started
23:02:22.583386 INFO [200.42.190.22:16180 OUT] Sync data returned unknown top block: 12149 -> 247857 [235708 blocks (327 days) behind]
23:02:22.583386 INFO SYNCHRONIZATION started
yerkobits commented 6 years ago

Bien. Me gustaría saber que tipo de solución aplicaste para superar el error...

22:46:34.234423 INFO Blockchain not loaded, generating genesis block. 22:46:34.234541 ERROR Coinbase transaction doesn't use full amount of block reward: spent 87.96093022207, block reward is 703.68744177663

Necesito dejarlo documentado. Pues esta criptomoneda tiene un enfoque de I+D y no sólo financiero.

equisde commented 6 years ago

hola si es que se me fue hacer un clean de los archivos ya compilados make clean hice un update del repositorio local con el repo remoto make -j4 eso era mas que nada jeje

El mié., 8 de ago. de 2018 12:56, YerkoBits notifications@github.com escribió:

Bien. Me gustaría saber que tipo de solución aplicaste para superar el error...

22:46:34.234423 INFO Blockchain not loaded, generating genesis block. 22:46:34.234541 ERROR Coinbase transaction doesn't use full amount of block reward: spent 87.96093022207, block reward is 703.68744177663

Necesito dejarlo documentado. Pues esta criptomoneda tiene un enfoque de I+D y no sólo financiero.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ProsusCorp/prosus/issues/6#issuecomment-411477074, or mute the thread https://github.com/notifications/unsubscribe-auth/AhC_9WrPj-34Z6zD2GxutZ_BlUdyTZf3ks5uOxghgaJpZM4VxjAI .