electroneum / electroneum-pool

GNU General Public License v2.0
177 stars 172 forks source link

not enougth money #176

Open phil2cr opened 6 years ago

phil2cr commented 6 years ago

a mining pool try to send payement at 2000 etn. there is more than 2000 etn. But the peyment failed because of "not enougth money" it is strange because there is enougth money. But i notice weirds number in the transaction (like 6000 etn). And this 6000 is lowering (temporary the money avaliable in the wallet). the balance become unlocked=0 after some minutes the balance is restored to the good number.

Build on Linux 16.4.3 LTS : 2018-01-16 03:10:57.630 WARN wallet.rpc src/wallet/wallet_rpc_server.cpp:1902 Starting wallet rpc server 2018-01-16 03:12:13.380 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=0.05, real_output=2, real_output_in_tx_index=0, indexes: 92337 102381 159934 161636 2018-01-16 03:12:13.381 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=9.00, real_output=3, real_output_in_tx_index=0, indexes: 404177 448644 588487 588968 2018-01-16 03:12:13.381 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=0.90, real_output=2, real_output_in_tx_index=5, indexes: 106281 622435 623055 624677 2018-01-16 03:12:13.381 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=200.00, real_output=3, real_output_in_tx_index=1, indexes: 24774 42340 271023 271712 2018-01-16 03:12:13.381 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=0.09, real_output=2, real_output_in_tx_index=3, indexes: 378016 480711 481651 483485 2018-01-16 03:12:13.382 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=6000.00, real_output=3, real_output_in_tx_index=3, indexes: 42884 56435 77223 77675

these 6 numbers are here to obfuscate ? 2018-01-16 03:12:13.394 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=0.05, real_output=2, real_output_in_tx_index=0, indexes: 92337 102381 159934 161636 2018-01-16 03:12:13.396 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=9.00, real_output=3, real_output_in_tx_index=0, indexes: 404177 448644 588487 588968 2018-01-16 03:12:13.396 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=0.90, real_output=2, real_output_in_tx_index=5, indexes: 106281 622435 623055 624677 2018-01-16 03:12:13.396 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=200.00, real_output=3, real_output_in_tx_index=1, indexes: 24774 42340 271023 271712 2018-01-16 03:12:13.397 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=0.09, real_output=2, real_output_in_tx_index=3, indexes: 378016 480711 481651 483485 < - why ? 2018-01-16 03:12:13.397 [RPC0] WARN wallet.wallet2 src/wallet/wallet2.h:1022 amount=6000.00, real_output=3, real_output_in_tx_index=3, indexes: 42884 56435 77223 77675 < - why 6000 ? ?

2018-01-16 03:12:13.653 [RPC0] ERROR wallet.wallet2 src/wallet/wallet2.cpp:4408 needed_money > unlocked_balance(). THROW EXCEPTION: error::not_enough_money 2018-01-16 03:12:13.653 [RPC0] WARN net.http src/wallet/wallet_errors.h:707 /home/user/electroneum/src/wallet/wallet2.cpp:4408:N5tools5error16not_enough_moneyE: not enough money, available = 1024.69, tx_amount = 2000.00 < - 2000 it is correct

log when "not_enough_money": 2018-01-16 03:12:13.653 [RPC0] INFO stacktrace src/common/stack_trace.cpp:120 Exception: tools::error::not_enough_money 2018-01-16 03:12:13.653 [RPC0] INFO stacktrace src/common/stack_trace.cpp:121 Unwound call stack: 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [1] ./electroneum-wallet-rpc:cxa_throw+0x106 [0x7bf5d6] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [2] ./electroneum-wallet-rpc:void tools::error::throw_wallet_ex<tools::error::not_enough_money, unsigned long, unsigned long, int>(std::cxx11::basic_string<char, std::char_traits, std::allocator >&&, unsigned long const&, unsigned long const&, int const&)+0x162 [0x6fcf42] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [3] ./electroneum-wallet-rpc:tools::wallet2::create_transactions_2(std::vector<cryptonote::tx_destination_entry, std::allocator >, unsigned long, unsigned long, unsigned int, std::vector<unsigned char, std::allocator >, bool)+0x1189 [0x6cd279] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [4] ./electroneum-wallet-rpc:tools::wallet_rpc_server::on_transfer(tools::wallet_rpc::COMMAND_RPC_TRANSFER::request const&, tools::wallet_rpc::COMMAND_RPC_TRANSFER::response&, epee::json_rpc::error&)+0x31d [0x5ee76d] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [5] ./electroneum-wallet-rpc:bool tools::wallet_rpc_server::handle_http_request_map(epee::net_utils::http::http_request_info const&, epee::net_utils::http::http_response_info&, epee::net_utils::connection_context_base&)+0x1307 [0x673b37] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [6] ./electroneum-wallet-rpc:tools::wallet_rpc_server::handle_http_request(epee::net_utils::http::http_request_info const&, epee::net_utils::http::http_response_info&, epee::net_utils::connection_context_base&)+0x15c [0x67dd9c] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [7] ./electroneum-wallet-rpc:epee::net_utils::http::http_custom_handler::handle_request(epee::net_utils::http::http_request_info const&, epee::net_utils::http::http_response_info&)+0xa2 [0x6606d2] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [8] ./electroneum-wallet-rpc:epee::net_utils::http::simple_http_connection_handler::handle_request_and_send_response(epee::net_utils::http::http_request_info const&)+0x22e [0x633e1e] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [9] ./electroneum-wallet-rpc:epee::net_utils::http::simple_http_connection_handler::handle_retriving_query_body()+0x152 [0x634152] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [10] ./electroneum-wallet-rpc:epee::net_utils::http::simple_http_connection_handler::handle_buff_in(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)+0x1c0 [0x67f070] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [11] ./electroneum-wallet-rpc:epee::net_utils::http::simple_http_connection_handler::handle_recv(void const, unsigned long)+0x37 [0x67f4a7] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [12] ./electroneum-wallet-rpc:epee::net_utils::connection<epee::net_utils::http::http_custom_handler >::handle_read(boost::system::error_code const&, unsigned long)+0x1ca [0x67f6da] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [13] ./electroneum-wallet-rpc:void boost::asio::detail::strand_service::dispatch<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::system::error_code, unsigned long> >(boost::asio::detail::strand_service::strand_impl&, boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::system::error_code, unsigned long>&)+0x71 [0x65a6c1] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [14] ./electroneum-wallet-rpc:void boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::asio::detail::is_continuation_if_running>::operator()<boost::system::error_code, unsigned long>(boost::system::error_code const&, unsigned long const&)+0x69 [0x65a919] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [15] ./electroneum-wallet-rpc:boost::asio::detail::completion_handler<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> > > >::do_complete(boost::asio::detail::task_io_service, boost::asio::detail::task_io_service_operation, boost::system::error_code const&, unsigned long)+0x12b [0x65aabb] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [16] ./electroneum-wallet-rpc:void boost::asio::detail::strand_service::dispatch<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> > > >(boost::asio::detail::strand_service::strand_impl&, boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> > >&)+0x20a [0x65adea] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [17] ./electroneum-wallet-rpc:boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler > > >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::asio::detail::is_continuation_if_running> >::do_complete(boost::asio::detail::task_io_service, boost::asio::detail::task_io_service_operation, boost::system::error_code const&, unsigned long)+0x234 [0x65b0a4] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [18] ./electroneum-wallet-rpc:boost::asio::detail::epoll_reactor::descriptor_state::do_complete(boost::asio::detail::task_io_service, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x1f5 [0x603745] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [19] ./electroneum-wallet-rpc:epee::net_utils::boosted_tcp_server<epee::net_utils::http::http_custom_handler >::worker_thread()+0x807 [0x619df7] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [20] /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0+0x115d5 [0x7fc6e75215d5] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [21] /lib/x86_64-linux-gnu/libpthread.so.0+0x76ba [0x7fc6e5a096ba] 2018-01-16 03:12:13.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:159 [22] /lib/x86_64-linux-gnu/libc.so.6:clone+0x6d [0x7fc6e573f3dd]

phil2cr commented 6 years ago

After about 15 minutes the "unlocked balance" come back to normal (from 0) and the payment could be done. Some payement are done and the wallet-rpc fail again.