Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Latest revison doesnt build #55

Closed
alexxy opened this issue May 5, 2014 · 8 comments
Closed

Latest revison doesnt build #55

alexxy opened this issue May 5, 2014 · 8 comments

Comments

@alexxy
Copy link

alexxy commented May 5, 2014

Starting from 2c5d6ff (?? may be because of merge) bitshares_toolkit doesnt build

[ 73%] Building CXX object libraries/wallet/CMakeFiles/bts_wallet.dir/wallet.cpp.o
/home/alexxy/Src/bitshares_toolkit/libraries/wallet/wallet.cpp: In member function 'void bts::wallet::wallet::set_receive_address_memo(const bts::blockchain::address&, const string&)':
/home/alexxy/Src/bitshares_toolkit/libraries/wallet/wallet.cpp:640:74: error: invalid initialization of non-const reference of type 'std::__detail::_Node_iterator<bts::wallet::receive_address, true, true>&' from an rvalue of type 'std::unordered_setbts::wallet::receive_address::iterator {aka std::__detail::_Node_iterator<bts::wallet::receive_address, true, true>}'
auto& found = my->_data.receive_addresses.find(receive_address(addr));
^
libraries/wallet/CMakeFiles/bts_wallet.dir/build.make:57: recipe for target 'libraries/wallet/CMakeFiles/bts_wallet.dir/wallet.cpp.o' failed
make[2]: *** [libraries/wallet/CMakeFiles/bts_wallet.dir/wallet.cpp.o] Error 1
CMakeFiles/Makefile2:350: recipe for target 'libraries/wallet/CMakeFiles/bts_wallet.dir/all' failed
make[1]: *** [libraries/wallet/CMakeFiles/bts_wallet.dir/all] Error 2

@nmushegian
Copy link
Contributor

fixed now? open another if no

@alexxy
Copy link
Author

alexxy commented May 5, 2014

It builds, but old bug returns

1238056ms th_a main ] bad_cast
Invalid cast from type '6' to Object
{"type":6}
th_a variant.cpp:498 get_object
unable to load /home/alexxy/.bitsharesxt/default_wallet.dat
{"wal":"/home/alexxy/.bitsharesxt/default_wallet.dat"}
th_a wallet.cpp:442 open main.cpp:157

so it efffectively cannot run wallet

@vikramrajkumar
Copy link
Contributor

Error returned for me also. Deleting the chain folder and the .bitsharesxt folder and starting over got it working again for me. I believe the wallet format has changed with the last couple commits.

We should eventually have some mechanism to version and upgrade wallet files, as this will happen in real life I'm sure.

@alexxy
Copy link
Author

alexxy commented May 6, 2014

Doesnt work for me. It cannot start.

@alexxy
Copy link
Author

alexxy commented May 6, 2014

However recreating wallet works. But its not a solution

@vikramrajkumar
Copy link
Contributor

Please clarify. It now works after deleting the wallet? Or it only works on the first wallet creation and subsequent runs still crash?

@alexxy
Copy link
Author

alexxy commented May 6, 2014

It works as expected. but seems like its not a solution to delete and recreate wallet on every codebase upgrade

@dnotestein
Copy link
Contributor

It's likely the format for storing the wallet will change entirely, in which case any method we use now for versioning would be also likely be discarded. Best just to consider this an artifact of early development for now. We'll definitely use a more robust method for versioning once we're closer to a real release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants