Main Menu

BitShares X Status Update

Started by bytemaster, January 02, 2014, 07:41:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cgafeng

There has a bug happen when the wallet first address enough to pay transfer but not enough to pay transfer+fee, the result is the first address money miss in wallet.

    There is my fix:
   
    signed_trasaction wallet::transfer(...)
    {
         ..........
         if(total_in >= amnt +fee )
             ...............
         else
         {
              mark_as_unspent(trx);
              .............................
         }
         ..........
    }

    void wallet::mark_as_unspent(const signed_transaction& trx)
    {
        for(auto itr=trx.inputs.begin();  itr!=inputs.end(); ++itr)
        {
            mark_as_unspent(itr->output_ref);
        }
    }

    void wallet::mark_as_unspent(const output_reference& trx)
    {
        auto itr = my->_spent_outputs.find(r);
        if(itr == my->_spent_outputs.end())
        {
            return;
        }
        my->_unspent_outputs[r] = itr->second;
        my->_spent_outputs.erase(r);
    }


    and the make_as_spent function i suggest to change last two line into this way, it cause an error in running after i build by vs2010:

    void make_as_spent()
    {
         .................
        my->_spent_outputs[r] = itr->second;
        my->_unspent_outputs.erase(r);

    }
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

alt

Just sent you 100 usd & 10 bts
Quote from: dxtr on January 26, 2014, 04:29:54 PM
Can I get some testShares to address PmP2PpHKrSbrBmfBf8wE6cGheNb ?

Thanks.

dxtr

Can I get some testShares to address PmP2PpHKrSbrBmfBf8wE6cGheNb ?

Thanks.
Help me out:     wallet_approve_delegate mr.scroodge true

spartako

Ok thanks, now the command worked and I sent 1 usd to aasl.

Quote from: alt on January 26, 2014, 03:59:51 PM
Yes, I see this msg too.
then I restart bts_wallet, my bts come back again...
sent you 10 bts for test.
Quote from: spartako on January 26, 2014, 02:42:03 PM
I tried to send you some usd but I got this error:

cmd: transfer 10 usd to SGspNwacutDySLyC8h4x1gMXNHD
Output:
-----------------------------------------------
assert
!"Unable to collect sufficient unspent inputs":
    {"min_amnt":"0.00000000 bts","total_collected":"0.00000000 bts"}
    th_a  blockchain_wallet.cpp:97 collect_inputs
10.00000000 usd to SGspNwacutDySLyC8h4x1gMXNHD
    {"amnt":"10.00000000 usd","to":"SGspNwacutDySLyC8h4x1gMXNHD"}
    th_a  blockchain_wallet.cpp:336 transfer
-----------------------------------------------
My balance before the transfer command is:
0.00000000 bts
100.00000000 usd

But after the transfer command is:
0.00000000 bts
0.00000000 usd

If i close the client and reopen it I obtain again 100 usd of balance.
Could the problem arise because I have no bts?

Quote from: aasl on January 26, 2014, 12:43:02 PM
please send me some bts to play with, I have been waiting for several days but got no update...

my bts wallet is: SGspNwacutDySLyC8h4x1gMXNHD
wallet_account_set_approval spartako

alt

Yes, I see this msg too.
then I restart bts_wallet, my bts come back again...
sent you 10 bts for test.
Quote from: spartako on January 26, 2014, 02:42:03 PM
I tried to send you some usd but I got this error:

cmd: transfer 10 usd to SGspNwacutDySLyC8h4x1gMXNHD
Output:
-----------------------------------------------
assert
!"Unable to collect sufficient unspent inputs":
    {"min_amnt":"0.00000000 bts","total_collected":"0.00000000 bts"}
    th_a  blockchain_wallet.cpp:97 collect_inputs
10.00000000 usd to SGspNwacutDySLyC8h4x1gMXNHD
    {"amnt":"10.00000000 usd","to":"SGspNwacutDySLyC8h4x1gMXNHD"}
    th_a  blockchain_wallet.cpp:336 transfer
-----------------------------------------------
My balance before the transfer command is:
0.00000000 bts
100.00000000 usd

But after the transfer command is:
0.00000000 bts
0.00000000 usd

If i close the client and reopen it I obtain again 100 usd of balance.
Could the problem arise because I have no bts?

Quote from: aasl on January 26, 2014, 12:43:02 PM
please send me some bts to play with, I have been waiting for several days but got no update...

my bts wallet is: SGspNwacutDySLyC8h4x1gMXNHD

alt

Don't know why, my bts is back again.
maybe a bug in the bts wallet, it didn't show balance include all address sometime.
when I sent usd to others, the address come again, I guess it's come back for the change.

alt

Just sent 100 usd and 10 bts

Quote from: aasl on January 26, 2014, 12:43:02 PM
please send me some bts to play with, I have been waiting for several days but got no update...

my bts wallet is: SGspNwacutDySLyC8h4x1gMXNHD

aasl

Quote from: spartako on January 26, 2014, 02:42:03 PM
I tried to send you some usd but I got this error:

cmd: transfer 10 usd to SGspNwacutDySLyC8h4x1gMXNHD
Output:
-----------------------------------------------
assert
!"Unable to collect sufficient unspent inputs":
    {"min_amnt":"0.00000000 bts","total_collected":"0.00000000 bts"}
    th_a  blockchain_wallet.cpp:97 collect_inputs
10.00000000 usd to SGspNwacutDySLyC8h4x1gMXNHD
    {"amnt":"10.00000000 usd","to":"SGspNwacutDySLyC8h4x1gMXNHD"}
    th_a  blockchain_wallet.cpp:336 transfer
-----------------------------------------------
My balance before the transfer command is:
0.00000000 bts
100.00000000 usd

But after the transfer command is:
0.00000000 bts
0.00000000 usd

If i close the client and reopen it I obtain again 100 usd of balance.
Could the problem arise because I have no bts?

Quote from: aasl on January 26, 2014, 12:43:02 PM
please send me some bts to play with, I have been waiting for several days but got no update...

my bts wallet is: SGspNwacutDySLyC8h4x1gMXNHD

Thank you for trying send me some bts! I checked my balance and it is still null. Let's wait for experts to reply :)

spartako

I tried to send you some usd but I got this error:

cmd: transfer 10 usd to SGspNwacutDySLyC8h4x1gMXNHD
Output:
-----------------------------------------------
assert
!"Unable to collect sufficient unspent inputs":
    {"min_amnt":"0.00000000 bts","total_collected":"0.00000000 bts"}
    th_a  blockchain_wallet.cpp:97 collect_inputs
10.00000000 usd to SGspNwacutDySLyC8h4x1gMXNHD
    {"amnt":"10.00000000 usd","to":"SGspNwacutDySLyC8h4x1gMXNHD"}
    th_a  blockchain_wallet.cpp:336 transfer
-----------------------------------------------
My balance before the transfer command is:
0.00000000 bts
100.00000000 usd

But after the transfer command is:
0.00000000 bts
0.00000000 usd

If i close the client and reopen it I obtain again 100 usd of balance.
Could the problem arise because I have no bts?

Quote from: aasl on January 26, 2014, 12:43:02 PM
please send me some bts to play with, I have been waiting for several days but got no update...

my bts wallet is: SGspNwacutDySLyC8h4x1gMXNHD
wallet_account_set_approval spartako

aasl

please send me some bts to play with, I have been waiting for several days but got no update...

my bts wallet is: SGspNwacutDySLyC8h4x1gMXNHD

spartako

Thanks a lot! So my first command will backup my wallet.bts ;)

Quote from: alt on January 26, 2014, 12:41:03 AM
I have  lose all my bts after a make clean :((

fortunately I have a backup, and left some bitusd, 100 bitusd have transfer to you

Quote from: spartako on January 25, 2014, 04:57:42 PM
I have just compiled bitshares on my Mac.
My address is: MQreWtLDLAzZDZPD9tAiRjoDUSw

Please give me some bitshares for testing so I can start play :)
wallet_account_set_approval spartako

alt

Just sent 100 usd
Quote from: JetainM on January 26, 2014, 07:08:36 AM
Can someone give me a small amount of BTS? Please~
address:MwqnmRTubvptyorR1F7kGPVqgWC

JetainM

Can someone give me a small amount of BTS? Please~
address:MwqnmRTubvptyorR1F7kGPVqgWC
BIB==BM IS BUG

alt

I have  lose all my bts after a make clean :((

fortunately I have a backup, and left some bitusd, 100 bitusd have transfer to you

Quote from: spartako on January 25, 2014, 04:57:42 PM
I have just compiled bitshares on my Mac.
My address is: MQreWtLDLAzZDZPD9tAiRjoDUSw

Please give me some bitshares for testing so I can start play :)

spartako

I have just compiled bitshares on my Mac.
My address is: MQreWtLDLAzZDZPD9tAiRjoDUSw

Please give me some bitshares for testing so I can start play :)
wallet_account_set_approval spartako