Giter Club home page Giter Club logo

safexcore's Introduction

Build Status

safex

WARNING: all code is still in a testing phase!! #install

Building from source

Ubuntu 14.04, 15.04, 15.10

Install Rust Stable

# install rust stable
curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh

# install stable and make it default
sudo multirust update stable
sudo multirust default stable
OSX with Homebrew
# install multirust
brew update
brew install multirust

# install stable and make it default
multirust update stable && multirust default stable

Generate bitcoin keys

# download and build safex/safex
git clone https://github.com/safex/safex
cd safex
cargo run --example keys

Import base64 bitcoin private key

# download and build safex/safex
git clone https://github.com/safex/safex
cd safex
cargo run --example import

Run some tests

# download and build safex/safex
git clone https://github.com/safex/safex
cd safex
cargo run --example testkeys

safexcore's People

Contributors

aivve avatar anonimal avatar atanmarko avatar aussiesloth avatar collinarnett avatar cool-pool avatar ddabek avatar denpamusic avatar dhniels avatar gene-telligent avatar kaca-1212 avatar kiu0612 avatar m2049r avatar moneroexamples avatar moneromooo-monero avatar razgadjanje avatar stefanisidorovic avatar stoffu avatar ulrich9595 avatar vangrx avatar zarnoevic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

safexcore's Issues

Algorithm?

Hi,

Someone can tel me Safexcore wich algo? Cryptonight v7, cryptonight fast, cryptonight original or heavy?

i cant mine on the pool (https://safexpool.net/).

xmrstak error:

SOCKET ERROR - [safexpool.net:3333] CALL error: Timeout while waiting for a reply

and I've tried on nodejs-pool, same problem: "SOCKET ERROR".

Thanks.

Compilation issue on Fedora 28

On Fedora 28, fails to compile many files due to error:
use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
One example:
safexcore/src/crypto/chacha.h:77:46: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of non-trivially copyable type ‘using chacha_key = tools::scrubbed_arr<unsigned char, 32>’ {aka ‘struct tools::scrubbed<std::array<unsigned char, 32> >’}; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
As a kludgy workaround I commented out the following line in:
src/CMakeLists.txt and contrib/CMakeLists.txt: add_compile_options("${WARNINGS_AS_ERRORS_FLAG}")
Then it built successfully.

Can't make on Mac OS

Hi, not a C developer so I might be missing something obvious

Determining if the function rl_copy_text exists failed with the following output:
Change Dir: /Users/fernandomartin/projects/safexcore/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_fdf64/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_fdf64.dir/build.make CMakeFiles/cmTC_fdf64.dir/build
Building C object CMakeFiles/cmTC_fdf64.dir/CheckFunctionExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -fno-strict-aliasing -maes -std=c11 -D_GNU_SOURCE   -Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized -Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes -march=native  -fPIC  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong -fno-strict-aliasing -DCHECK_FUNCTION_EXISTS=rl_copy_text -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk   -o CMakeFiles/cmTC_fdf64.dir/CheckFunctionExists.c.o   -c /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_fdf64
/usr/local/Cellar/cmake/3.11.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fdf64.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc  -fno-strict-aliasing -maes -std=c11 -D_GNU_SOURCE   -Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized -Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes -march=native  -fPIC  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong -fno-strict-aliasing -DCHECK_FUNCTION_EXISTS=rl_copy_text -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names   CMakeFiles/cmTC_fdf64.dir/CheckFunctionExists.c.o  -o cmTC_fdf64 /usr/lib/libreadline.dylib 
Undefined symbols for architecture x86_64:
  "_rl_copy_text", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_fdf64] Error 1
make: *** [cmTC_fdf64/fast] Error 2


ip-172-17-0-46:safexcore fernandomartin$ which xco
ip-172-17-0-46:safexcore fernandomartin$ XCo
ip-172-17-0-46:safexcore fernandomartin$ xcode
xcode-select  xcodebuild    xcodeproj     
ip-172-17-0-46:safexcore fernandomartin$ /usr/bin/xcodebuild -version
Xcode 9.2
Build version 9C40b
ip-172-17-0-46:safexcore fernandomartin$ 

Xcode version 9.2.
OS MacOs Sierra 10.13.4

I ran into several issues, finally got stuck in:

ld: symbol(s) not found for architecture x86_64

Googled around stackoverflow. Found this:

Hi, I know... it's an old post but here it comes my answer.
I use OS X Sierra and g++ command to compile cpp in the terminal and I got that error too.
How I solved that? I used -lm or -ll or -ly as parameters of g++ command. For me -lm worked but for some friends doesn't so maybe you have to try with the others. Try to combine them too.

on ucbrise/clipper#300

But I havent programmed in C or used g++ so I dont know what -lm means.

Hope it helps

Please use sweep_unmixable.

Error: not enough outputs for specified ring size = 7:
output amount = 131.8440000000, found outputs to use = 1Please use sweep_unmixable.

How to fix it?

safex-wallet-rpc not created

Tried to ask in discord and got ignored. Nice one!

So even when you enable create wallet rpc in the cmakelists.txt it doesn't make the rpc wallet. What is the solution to this?

libzmq.so.5 => not found

I'm installing safexd-ubuntu 16 but when I run ./safexd-ubuntu I have error while loading shared libraries: libzmq.so.5: cannot open shared object file: No such file or directory

With ldd ./safexd-ubuntu16 I have libzmq.so.5 => not found
Could you help me?

PreRelease contains Hardfork definition that happened in the past

Hi!

By using latest stable release (3.0.1) I can't get past block 335252 which was mined on 20191211.
When Safex 5.0.0 will be latest stable release it will bring compatibility with events that happened in the past. Right now, stable release is not working anymore.

Tldr:
You've commited the code with breaking changes two hours before they happened.
You've wrongly released code as PreRelease instead of stable release.
Are you serious?

safex-wallet-rpc not created

After change in CMakeList.txt file option for RPC Wallet to ON not builded


#when ON - it will build safex-wallet-rpc
option(BUILD_WALLET_RPC "Build cli rpc wallet server." ON)


Can't compile

[ 73%] Linking CXX executable core_tests
clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
"cryptonote::get_base_reward(unsigned long long)", referenced from:
gen_block_reward::check_block_rewards(cryptonote::core&, unsigned long, std::__1::vector<boost::variant<cryptonote::block, cryptonote::transaction, cryptonote::account_base, callback_entry, serialized_objectcryptonote::block, serialized_objectcryptonote::transaction, event_visitor_settings>, std::__1::allocator<boost::variant<cryptonote::block, cryptonote::transaction, cryptonote::account_base, callback_entry, serialized_objectcryptonote::block, serialized_objectcryptonote::transaction, event_visitor_settings> > > const&) in block_reward.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [tests/core_tests/core_tests] Error 1
make[2]: *** [tests/core_tests/CMakeFiles/core_tests.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [release-all] Error 2

i'm using iOSx

help for mining

Hi can you help me creating a bin bash script which will downlaod the miner and run it auto everytime my computer restarts for ubuntu for sfx?

Compiling on Ubuntu 18.04

Cannot compile binaries with "make release-all" after installing dependancies on 2 different distros, fresh install, results in:
-- Found readline library at: /usr
-- Found Git: /usr/bin/git
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- GTest not found on the system: will use GTest bundled with this source
-- Configuring incomplete, errors occurred!
See also "/home/init/safexcore/build/release/CMakeFiles/CMakeOutput.log".
See also "/home/init/safexcore/build/release/CMakeFiles/CMakeError.log".
Makefile:66: recipe for target 'release-all' failed
make: *** [release-all] Error 1

CMakeError.log:
cat /home/init/safexcore/build/release/CMakeFiles/CMakeError.log
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/init/safexcore/build/release/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_fe7f6/fast"
make[1]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_fe7f6.dir/build.make CMakeFiles/cmTC_fe7f6.dir/build
make[2]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fe7f6.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_fe7f6.dir/CheckSymbolExists.c.o -c /home/init/safexcore/build/release/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_fe7f6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fe7f6.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_fe7f6.dir/CheckSymbolExists.c.o -o cmTC_fe7f6
CMakeFiles/cmTC_fe7f6.dir/CheckSymbolExists.c.o: In function main': CheckSymbolExists.c:(.text+0x1b): undefined reference to pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_fe7f6.dir/build.make:97: recipe for target 'cmTC_fe7f6' failed
make[2]: *** [cmTC_fe7f6] Error 1
make[2]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_fe7f6/fast' failed
make[1]: *** [cmTC_fe7f6/fast] Error 2
make[1]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'

File /home/init/safexcore/build/release/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the function memset_s exists in the c failed with the following output:
Change Dir: /home/init/safexcore/build/release/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d081c/fast"
make[1]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_d081c.dir/build.make CMakeFiles/cmTC_d081c.dir/build
make[2]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d081c.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=memset_s -o CMakeFiles/cmTC_d081c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_d081c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d081c.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=memset_s -rdynamic CMakeFiles/cmTC_d081c.dir/CheckFunctionExists.c.o -o cmTC_d081c -L/home/init/safexcore/build/release/CMakeFiles/CMakeTmp/string.h -Wl,-rpath,/home/init/safexcore/build/release/CMakeFiles/CMakeTmp/string.h -lc
CMakeFiles/cmTC_d081c.dir/CheckFunctionExists.c.o: In function main': CheckFunctionExists.c:(.text+0x10): undefined reference to memset_s'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_d081c.dir/build.make:97: recipe for target 'cmTC_d081c' failed
make[2]: *** [cmTC_d081c] Error 1
make[2]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d081c/fast' failed
make[1]: *** [cmTC_d081c/fast] Error 2
make[1]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'

Determining if the -Wl,-z,noexecheap linker flag is suppored failed with the following output:
Change Dir: /home/init/safexcore/build/release/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_3c2e0/fast"
make[1]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_3c2e0.dir/build.make CMakeFiles/cmTC_3c2e0.dir/build
make[2]: Entering directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3c2e0.dir/CheckLinkerFlag.c.o
/usr/bin/cc -Wl,-z,noexecheap -Wl,-z,noexecheap -o CMakeFiles/cmTC_3c2e0.dir/CheckLinkerFlag.c.o -c /home/init/safexcore/cmake/CheckLinkerFlag.c
Linking C executable cmTC_3c2e0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3c2e0.dir/link.txt --verbose=1
/usr/bin/cc -Wl,-z,noexecheap -rdynamic CMakeFiles/cmTC_3c2e0.dir/CheckLinkerFlag.c.o -o cmTC_3c2e0
/usr/bin/x86_64-linux-gnu-ld: warning: -z noexecheap ignored.
make[2]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'
make[1]: Leaving directory '/home/init/safexcore/build/release/CMakeFiles/CMakeTmp'

Error adding hard fork version to db transaction: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid

/safexcore/build/release/bin$ sudo ./safexd --testnet
2018-07-09 17:48:22.665 7fa1d0710780 INFO global src/daemon/main.cpp:360 Safex 'Safex Blockchain Launch v0.1' (v0.1-master-42b4bc7)
2018-07-09 17:48:22.667 7fa1d0710780 INFO global src/daemon/protocol.h:54 Initializing cryptonote protocol...
2018-07-09 17:48:22.668 7fa1d0710780 INFO global src/daemon/protocol.h:59 Cryptonote protocol initialized OK
2018-07-09 17:48:22.670 7fa1d0710780 INFO global src/daemon/p2p.h:64 Initializing p2p server...
2018-07-09 17:48:26.765 7fa1d0710780 INFO global src/daemon/p2p.h:69 p2p server initialized OK
2018-07-09 17:48:26.772 7fa1d0710780 INFO global src/daemon/rpc.h:64 Initializing core RPC server...
2018-07-09 17:48:26.775 7fa1d0710780 INFO global contrib/epee/include/net/http_server_impl_base.h:76 Binding on 127.0.0.1:19184
2018-07-09 17:48:26.778 7fa1d0710780 INFO global src/daemon/rpc.h:70 core RPC server initialized OK on port: 19184
2018-07-09 17:48:26.781 7fa1d0710780 INFO global src/daemon/core.h:88 Initializing core...
2018-07-09 17:48:26.802 7fa1d0710780 INFO global src/cryptonote_core/cryptonote_core.cpp:428 Loading blockchain from folder /home/mycomputer/.safex/lmdb ...
2018-07-09 17:48:26.819 7fa1d0710780 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:77 Error attempting to retrieve a hard fork version at height 0 from the db: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-07-09 17:48:26.852 7fa1d0710780 FATAL daemon src/daemon/daemon.cpp:195 Uncaught exception! Error adding hard fork version to db transaction: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-07-09 17:48:26.856 7fa1d0710780 INFO global src/daemon/rpc.h:97 Deinitializing core RPC server...
2018-07-09 17:48:26.860 7fa1d0710780 INFO global src/daemon/p2p.h:91 Deinitializing p2p...
2018-07-09 17:48:30.890 7fa1d0710780 INFO global src/daemon/core.h:105 Deinitializing core...
2018-07-09 17:48:30.900 7fa1d0710780 INFO global src/daemon/protocol.h:76 Stopping cryptonote protocol...
2018-07-09 17:48:30.903 7fa1d0710780 INFO global src/daemon/protocol.h:80 Cryptonote protocol stopped successfully

Dvandal's cryptonote-nodejs-pool

Trying to setup this pool and I keep getting:
Malformed message from ::ffff:174.74.89.112 generated an exception. Message: {"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"Safex5zFa7NVATj8EWHdoDEiF1WiDYFBGMRE9whi9AhMG5T4teT6ht9TCkcSQKW48pgn4divLexfMXe5qFFXRWh6X3m7aQtCGfF2k","pass":"x","agent":"XMRig/2.7.3-beta (Windows NT 10.0; Win64; x64) libuv/1.22.0 msvc/2017","algo":["cn/1","cn/0","cn/xtl","cn/msr","cn/xao","cn/rto","cn"]}}
[pool] (Thread 2) Exception: Failed to parse block

I am assuming the "intAddressPrefix" is wrong, anyone have any ideas what the problem could be?

Balance is 0!

I can't find my balance by using safex-wallet-cli-linux.
But I'm sure it's wrong because the address is used for my pool.
How can I find my balance?

compiling error running Make File in Ubuntu

I receive the following error at 64%: I am using Ubuntu 18.4, I have 8GB RAM

[ 62%] Building CXX object src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/cryptonote_tx_utils.cpp.o
In function ‘bool cryptonote::construct_miner_tx(size_t, size_t, uint64_t, size_t, uint64_t, const cryptonote::account_public_address&, cryptonote::transaction&, const blobdata&, size_t, uint8_t)’:
cc1plus: error: ‘void* __builtin_memset(void*, int, long unsigned int)’: specified size 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
cc1plus: all warnings being treated as errors
src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/build.make:134: recipe for target 'src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/cryptonote_tx_utils.cpp.o' failed
make[2]: *** [src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/cryptonote_tx_utils.cpp.o] Error 1
CMakeFiles/Makefile2:1312: recipe for target 'src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/all' failed
make[1]: *** [src/cryptonote_core/CMakeFiles/obj_cryptonote_core.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
tommy@tommy-VirtualBox:~/safexcore$

Missing 0.1.2 OSX binaries

Under safexcore/releases/tag/v0.1.2 there are Ubuntu and Windows binaries but OSX binaries are missing. Please add Mac binaries for latest CLI tags.

Cannot start daemon Ubuntu 18.04

init@init-VirtualBox:/safex/safexcore/bin$ sudo ./safexd
[sudo] password for init:
2018-07-16 09:52:52.564 7fe00838f180 INFO global src/daemon/main.cpp:360 Safex 'Safex Blockchain Launch v0.1' (v0.1-master-6576373)
2018-07-16 09:52:52.565 7fe00838f180 INFO global src/daemon/protocol.h:54 Initializing cryptonote protocol...
2018-07-16 09:52:52.566 7fe00838f180 INFO global src/daemon/protocol.h:59 Cryptonote protocol initialized OK
2018-07-16 09:52:52.567 7fe00838f180 INFO global src/daemon/p2p.h:64 Initializing p2p server...
2018-07-16 09:52:56.641 7fe00838f180 INFO global src/daemon/p2p.h:69 p2p server initialized OK
2018-07-16 09:52:56.652 7fe00838f180 INFO global src/daemon/rpc.h:64 Initializing core RPC server...
2018-07-16 09:52:56.654 7fe00838f180 INFO global contrib/epee/include/net/http_server_impl_base.h:76 Binding on 127.0.0.1:19184
2018-07-16 09:52:56.655 7fe00838f180 INFO global src/daemon/rpc.h:70 core RPC server initialized OK on port: 19184
2018-07-16 09:52:56.655 7fe00838f180 INFO global src/daemon/core.h:88 Initializing core...
2018-07-16 09:52:56.657 7fe00838f180 INFO global src/cryptonote_core/cryptonote_core.cpp:428 Loading blockchain from folder /home/init/.safex/lmdb ...
2018-07-16 09:52:56.663 7fe00838f180 ERROR cn src/cryptonote_basic/cryptonote_format_utils.cpp:134 Failed to parse transaction from blob
2018-07-16 09:52:56.663 7fe00838f180 ERROR default src/cryptonote_core/cryptonote_tx_utils.cpp:737 failed to parse coinbase tx from hard coded blob
2018-07-16 09:52:56.665 7fe00838f180 ERROR blockchain src/cryptonote_core/blockchain.cpp:385 Failed to add genesis block to blockchain
2018-07-16 09:52:56.665 7fe00838f180 INFO global src/cryptonote_core/cryptonote_core.cpp:526 Loading checkpoints
2018-07-16 09:52:56.890 7fe00838f180 WARN net.dns src/common/dns_utils.cpp:510 WARNING: no two valid SafexPulse DNS checkpoint records were received
2018-07-16 09:52:56.890 7fe00838f180 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:77 batch transactions not enabled
2018-07-16 09:52:56.905 7fe00838f180 FATAL daemon src/daemon/daemon.cpp:195 Uncaught exception! batch transactions not enabled
2018-07-16 09:52:56.906 7fe00838f180 INFO global src/daemon/rpc.h:97 Deinitializing core RPC server...
2018-07-16 09:52:56.906 7fe00838f180 INFO global src/daemon/p2p.h:91 Deinitializing p2p...
2018-07-16 09:53:00.914 7fe00838f180 INFO global src/daemon/core.h:105 Deinitializing core...
2018-07-16 09:53:00.926 7fe00838f180 INFO global src/daemon/protocol.h:76 Stopping cryptonote protocol...
2018-07-16 09:53:00.926 7fe00838f180 INFO global src/daemon/protocol.h:80 Cryptonote protocol stopped successfully
init@init-VirtualBox:
/safex/safexcore/bin$ cat safex-blockchain-import.log
2018-07-16 09:49:38.991 7f8dbfbfe7c0 INFO logging contrib/epee/src/mlog.cpp:185 New log categories: :WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
2018-07-16 09:49:38.991 7f8dbfbfe7c0 INFO logging contrib/epee/src/mlog.cpp:185 New log categories: :WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO,bcutil:INFO
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:692 Starting...
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:727 database: lmdb
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:728 database flags: 0
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:729 verify: true
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:733 batch: true batch size: 5000
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:739 resume: true
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:740 nettype: mainnet
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:742 bootstrap file path: /home/init/.safex/export/blockchain.raw
2018-07-16 09:49:38.992 7f8dbfbfe7c0 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:743 database path: /home/init/.safex
2018-07-16 09:49:38.994 7f8dbfbfe7c0 INFO global src/cryptonote_core/cryptonote_core.cpp:428 Loading blockchain from folder /home/init/.safex/lmdb ...
2018-07-16 09:49:38.995 7f8dbfbfe7c0 ERROR cn src/cryptonote_basic/cryptonote_format_utils.cpp:134 Failed to parse transaction from blob
2018-07-16 09:49:38.995 7f8dbfbfe7c0 ERROR default src/cryptonote_core/cryptonote_tx_utils.cpp:737 failed to parse coinbase tx from hard coded blob
2018-07-16 09:49:38.995 7f8dbfbfe7c0 ERROR blockchain src/cryptonote_core/blockchain.cpp:385 Failed to add genesis block to blockchain
2018-07-16 09:49:38.995 7f8dbfbfe7c0 INFO global src/cryptonote_core/cryptonote_core.cpp:526 Loading checkpoints
2018-07-16 09:49:39.067 7f8dbfbfe7c0 WARN net.dns src/common/dns_utils.cpp:510 WARNING: no two valid SafexPulse DNS checkpoint records were received
2018-07-16 09:49:39.067 7f8dbfbfe7c0 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:77 batch transactions not enabled
2018-07-16 09:49:39.068 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:126 Exception: cryptonote::DB_ERROR
2018-07-16 09:49:39.068 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:127 Unwound call stack:
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [1] ./safex-blockchain-import:__cxa_throw+0x10a [0x55afd6f264ca]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [2] ./safex-blockchain-import+0x161f43 [0x55afd6e1df43]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [3] ./safex-blockchain-import:cryptonote::BlockchainLMDB::batch_start(unsigned long, unsigned long)+0x3e4 [0x55afd6e44cd4]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [4] ./safex-blockchain-import:cryptonote::Blockchain::check_against_checkpoints(cryptonote::checkpoints const&, bool)+0x79 [0x55afd6dc2e39]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [5] ./safex-blockchain-import:cryptonote::Blockchain::update_checkpoints(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)+0x1fd [0x55afd6dc33ad]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [6] ./safex-blockchain-import:cryptonote::core::update_checkpoints()+0x73 [0x55afd6de2f13]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [7] ./safex-blockchain-import:cryptonote::core::init(boost::program_options::variables_map const&, char const
, cryptonote::test_options const
)+0x16b2 [0x55afd6dee242]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [8] ./safex-blockchain-import:main+0x194a [0x55afd6d6a47a]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [9] /lib/x86_64-linux-gnu/libc.so.6:__libc_start_main+0xe7 [0x7f8dbcd1fb97]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165 [10] ./safex-blockchain-import:_start+0x2a [0x55afd6d7254a]
2018-07-16 09:49:39.069 7f8dbfbfe7c0 INFO stacktrace src/common/stack_trace.cpp:165

Failed to on_get_hashes()

Finally have my daemon synced with the cli, but now running the daemon keeps throwing an error:
2018-07-16 11:07:41.127 [RPC0] ERROR net.http src/rpc/core_rpc_server.h:89 Failed to on_get_hashes()
2018-07-16 11:09:11.236 [RPC1] ERROR net.http src/rpc/core_rpc_server.h:89 Failed to on_get_hashes()
2018-07-16 11:10:41.331 [RPC0] ERROR net.http src/rpc/core_rpc_server.h:89 Failed to on_get_hashes()
2018-07-16 11:12:11.423 [RPC1] ERROR net.http src/rpc/core_rpc_server.h:89 Failed to on_get_hashes()
2018-07-16 11:13:41.523 [RPC0] ERROR net.http src/rpc/core_rpc_server.h:89 Failed to on_get_hashes()

Also, if I do "address" on my wallet-cli it returns:
0 SFXpWVmcPtJDt24HACjh3GGnc74x3JyDJ3j3RRszMskBindp5R34bKtdHLzaZffDNwQrA7Cmu8Hh1NHnKfyZzKJeioK8DaH7ftB Primary address

If I do start_mining SFXpWVmcPtJDt24HACjh3GGnc74x3JyDJ3j3RRszMskBindp5R34bKtdHLzaZffDNwQrA7Cmu8Hh1NHnKfyZzKJeioK8DaH7ftB 1 , I get an error saying:
2018-07-16 11:16:16.483 7f230ffff700 WARN daemon.rpc src/rpc/core_rpc_server.cpp:836 Failed, wrong address
Error: Mining did not start -- Failed, wrong address

Shouldn't be the wrong address, as I've succesfully linked the daemon and cli (doesn't say "no daemon" or "out of sync" anymore)?
Also the cli wasn't by default listening on the same port the daemon ran on by default so I had to specify it with set_daemon 127.0.0.1:29182 ...

What's wrong here? :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.