Pages:
Author

Topic: [ANN][YAC] YACoin ongoing development - page 84. (Read 379983 times)

hero member
Activity: 516
Merit: 500
CAT.EX Exchange
March 12, 2014, 12:36:42 AM
Quote

I made a lot of progress on the stake function for Qt today.  I can see why no one did it in the past, it's a real pain  Tongue but will be cool when done.

Also, forum.yacoin.org is now live. Thanks to Sahtor for doing all the work to get it going again!
I know your pain Joe_Bowers. I tried totaling up up all the inputs eligible for staking in CWallet::CreateCoinStake (in wallet.cpp) then printing the result out the log each time it's called. But the total just jumps around randomly. I can't figure out if there is a bug in that function, or I just don't understand how that function goes about finding inputs that should be checked for possible POS block generation. There is supposed to be some unpredictability function so people can't game their POS blocks for some kind of timed attack. Perhaps that's whats making it tricky to understand.

Is it possible to run the wallet in a debugger and watch how it works?
newbie
Activity: 25
Merit: 0
March 12, 2014, 12:17:10 AM
Quote

I made a lot of progress on the stake function for Qt today.  I can see why no one did it in the past, it's a real pain  Tongue but will be cool when done.

Also, forum.yacoin.org is now live. Thanks to Sahtor for doing all the work to get it going again!
I know your pain Joe_Bowers. I tried totaling up up all the inputs eligible for staking in CWallet::CreateCoinStake (in wallet.cpp) then printing the result out the log each time it's called. But the total just jumps around randomly. I can't figure out if there is a bug in that function, or I just don't understand how that function goes about finding inputs that should be checked for possible POS block generation. There is supposed to be some unpredictability function so people can't game their POS blocks for some kind of timed attack. Perhaps that's whats making it tricky to understand.
hero member
Activity: 809
Merit: 501
March 11, 2014, 11:30:06 PM


That one showed up in block 388734 with the transaction id you show.  Do you know how to use the block explorer to search for these things?

http://explorer.yacoin.org/block/9566a239f199b8eac0017ec7663fce59da4c8c33cf7fbe499bbaf4a7210dc948

I'm obviously doing a terrible job explaining things... the txid I just posted is from the transaction in blue letters (1/20/2014 01:02). You made the point that my coins are find and that I just have to find them. Well there are many candidates if you just judge by approx time (within a few days) and coin amounts. But how am I supposed to know the 1/18/2014 14:22 transaction is somehow related to the transaction i just took a screenshot of or the block explorer links you posted previously. It still looks like I just lost coins into stake oblivion if I open up the 1/18/2014 14:22 transaction.

Thanks so much Joe_Bauers. YBC qt will have nothing on YAC qt.
hero member
Activity: 693
Merit: 500
March 11, 2014, 10:45:56 PM


Just focusing on the 18 Jan transaction, I took a screenshot of a possible stake that eventually went through? It was approx 500 coins with that question mark. I have many 125, 250, 500 packets of coins if you will that stake regularly, so it seems impossible to tell if those very coins were indeed staked correctly at a later, or previous, point in time....





That one showed up in block 388734 with the transaction id you show.  Do you know how to use the block explorer to search for these things?

http://explorer.yacoin.org/block/9566a239f199b8eac0017ec7663fce59da4c8c33cf7fbe499bbaf4a7210dc948
hero member
Activity: 802
Merit: 1003
GCVMMWH
March 11, 2014, 10:30:23 PM
The address for all three is my main address YL5kf54wPPXKsXd5T18xCaNkyUsS1DgY7z.

Could this be the first one?
http://explorer.yacoin.org/block/fd34ecf439fc5a88044427250362a4f994e1c2708eccfdb6be5b30977c734224

and this the second one?
http://explorer.yacoin.org/block/27bf348e0e91362dd6eede675eecafd82d91e9350d335f8e02858f55b81ec52e
or this one (your address got 2 POS blocks that day)
http://explorer.yacoin.org/block/affe7771b2eefe4fdc3ea282f5061a24b7c19e5ac43a1168279b5b0328864f40


Do those correlate the the amounts you are looking for?

Joe_Bauers & Sairon, Since the TXID is different than his client thinks it is - could Transaction Malleability be affecting POS generation within the client?

Not sure without looking into a lot further. I think it's partially the case of the horrible way the client shows pos transactions and what groko already fixed, but if the TXID is indeed different, then obviously something weird is going on.  Maybe the YbCoin folks can fix it  Cheesy

I made a lot of progress on the stake function for Qt today.  I can see why no one did it in the past, it's a real pain  Tongue but will be cool when done.

Also, forum.yacoin.org is now live. Thanks to Sahtor for doing all the work to get it going again!
hero member
Activity: 809
Merit: 501
March 11, 2014, 09:30:48 PM
The address for all three is my main address YL5kf54wPPXKsXd5T18xCaNkyUsS1DgY7z.

Could this be the first one?
http://explorer.yacoin.org/block/fd34ecf439fc5a88044427250362a4f994e1c2708eccfdb6be5b30977c734224

and this the second one?
http://explorer.yacoin.org/block/27bf348e0e91362dd6eede675eecafd82d91e9350d335f8e02858f55b81ec52e
or this one (your address got 2 POS blocks that day)
http://explorer.yacoin.org/block/affe7771b2eefe4fdc3ea282f5061a24b7c19e5ac43a1168279b5b0328864f40


Do those correlate the the amounts you are looking for?

Joe_Bauers & Sairon, Since the TXID is different than his client thinks it is - could Transaction Malleability be affecting POS generation within the client?

Ugh well unfortunately I'm not going to have access to my wallet until Wednesday, so I won't be able to check if those transaction are in my wallet until then. :/  I don't know off the top of my head how many other proof of stake transactions (and amounts) I had that day. But yea, that would correlate to the right amounts.

Just focusing on the 18 Jan transaction, I took a screenshot of a possible stake that eventually went through? It was approx 500 coins with that question mark. I have many 125, 250, 500 packets of coins if you will that stake regularly, so it seems impossible to tell if those very coins were indeed staked correctly at a later, or previous, point in time....



hero member
Activity: 809
Merit: 501
March 10, 2014, 12:21:50 PM
The address for all three is my main address YL5kf54wPPXKsXd5T18xCaNkyUsS1DgY7z.

Could this be the first one?
http://explorer.yacoin.org/block/fd34ecf439fc5a88044427250362a4f994e1c2708eccfdb6be5b30977c734224

and this the second one?
http://explorer.yacoin.org/block/27bf348e0e91362dd6eede675eecafd82d91e9350d335f8e02858f55b81ec52e
or this one (your address got 2 POS blocks that day)
http://explorer.yacoin.org/block/affe7771b2eefe4fdc3ea282f5061a24b7c19e5ac43a1168279b5b0328864f40


Do those correlate the the amounts you are looking for?

Joe_Bauers & Sairon, Since the TXID is different than his client thinks it is - could Transaction Malleability be affecting POS generation within the client?

Ugh well unfortunately I'm not going to have access to my wallet until Wednesday, so I won't be able to check if those transaction are in my wallet until then. :/  I don't know off the top of my head how many other proof of stake transactions (and amounts) I had that day. But yea, that would correlate to the right amounts.
hero member
Activity: 693
Merit: 500
March 10, 2014, 11:12:12 AM
The address for all three is my main address YL5kf54wPPXKsXd5T18xCaNkyUsS1DgY7z.

Could this be the first one?
http://explorer.yacoin.org/block/fd34ecf439fc5a88044427250362a4f994e1c2708eccfdb6be5b30977c734224

and this the second one?
http://explorer.yacoin.org/block/27bf348e0e91362dd6eede675eecafd82d91e9350d335f8e02858f55b81ec52e
or this one (your address got 2 POS blocks that day)
http://explorer.yacoin.org/block/affe7771b2eefe4fdc3ea282f5061a24b7c19e5ac43a1168279b5b0328864f40


Do those correlate the the amounts you are looking for?

Joe_Bauers & Sairon, Since the TXID is different than his client thinks it is - could Transaction Malleability be affecting POS generation within the client?
hero member
Activity: 809
Merit: 501
March 10, 2014, 11:03:33 AM
ThirtyBird, I don't understand.

18 Jan transaction:

c0da477d4db7c4f82342a3f65e0c6bdc2d7ebfea7a220102a504ab3b4e156ad5

7 Mar transaction:

56a0a203297872aa8f5f997f4430413ab8f28d727340d47ba5d94103d9b4c18b


The question mark still shows on the left side of the qt. It SUBTRACTED the coins for stake right? Well I currently have 0.00 coins in my wallet under 'Stake'. It is as if the coins were supposed to be sent to stake but actually just disappeared.

It isn't happening for every stake. This error has happened only 3 times this year (out of about 70-130).

You're giving transactions that do not exist.  If you have no coins in your wallet, either the coins were never staked, or were stakes successfully and you spent them (or you need to restart the client - without any valid information to look at, who knows?).  Provide the address that received the coins and a time/date they were received.

My point of posting those transactions was for you to see that they do not exist. But you saw the screenshot from my wallet. Also, POS always shows 0.00--I imagine that is because nothing is being sent to another address. When you earn coins from POS, it still shows 0.00, so that means nothing in terms of saying I gained coins or lost coins.

I honestly cannot say if those last couple transactions actually caused a decrease in total coins in my wallet. However, the first time it happened, I am pretty certain it did (I didn't have many coins in my wallet at the time. so I noticed 500 coins gone). Either way, this is STILL a big problem that I think needs to be addressed. I'm afraid the only way for me to know for certain is to lose thousands in one stake, but then you may not believe me even then.

What it shows right now is that I have 875 total coins sent to stake, but they have never come back nor are they in the block explorer as having been sent to stake at all. Whether you believe I am actually missing coins or not, that is what it SHOWS. If they were orphaned, there needs to be a way to indicate that?


Just post the address.  

The address for all three is my main address YL5kf54wPPXKsXd5T18xCaNkyUsS1DgY7z.

Anyway, thanks ThirtyBird, Groko. I'm looking forward to the next release from Joe_Bauers. I'm not going to lose sleep over the 875 coins, but I would lose sleep over the potential to lose more. But I appreciate the assurance that, in reality, no coins are actually being lost and that it is just the client erroneously implying such a thing is occurring. Just imagine me trying to convince a friend to buy YAC and hold on to them for stake, then telling him not to worry about that minus 500 transaction with the '?' next to it. Sorry to sound like an armchair quarterback (not a computer programmer--which is a gross understatement), but I figured this issue, whatever is happening, was a crucial one that needed to be fixed. I beat the dead horse.

Thanks you so much.
hero member
Activity: 693
Merit: 500
March 09, 2014, 07:28:32 PM
ThirtyBird, I don't understand.

18 Jan transaction:

c0da477d4db7c4f82342a3f65e0c6bdc2d7ebfea7a220102a504ab3b4e156ad5

7 Mar transaction:

56a0a203297872aa8f5f997f4430413ab8f28d727340d47ba5d94103d9b4c18b


The question mark still shows on the left side of the qt. It SUBTRACTED the coins for stake right? Well I currently have 0.00 coins in my wallet under 'Stake'. It is as if the coins were supposed to be sent to stake but actually just disappeared.

It isn't happening for every stake. This error has happened only 3 times this year (out of about 70-130).

You're giving transactions that do not exist.  If you have no coins in your wallet, either the coins were never staked, or were stakes successfully and you spent them (or you need to restart the client - without any valid information to look at, who knows?).  Provide the address that received the coins and a time/date they were received.

My point of posting those transactions was for you to see that they do not exist. But you saw the screenshot from my wallet. Also, POS always shows 0.00--I imagine that is because nothing is being sent to another address. When you earn coins from POS, it still shows 0.00, so that means nothing in terms of saying I gained coins or lost coins.

I honestly cannot say if those last couple transactions actually caused a decrease in total coins in my wallet. However, the first time it happened, I am pretty certain it did (I didn't have many coins in my wallet at the time. so I noticed 500 coins gone). Either way, this is STILL a big problem that I think needs to be addressed. I'm afraid the only way for me to know for certain is to lose thousands in one stake, but then you may not believe me even then.

What it shows right now is that I have 875 total coins sent to stake, but they have never come back nor are they in the block explorer as having been sent to stake at all. Whether you believe I am actually missing coins or not, that is what it SHOWS. If they were orphaned, there needs to be a way to indicate that?


Just post the address. 
newbie
Activity: 25
Merit: 0
March 09, 2014, 01:56:16 PM
ThirtyBird, I don't understand.

18 Jan transaction:

c0da477d4db7c4f82342a3f65e0c6bdc2d7ebfea7a220102a504ab3b4e156ad5

7 Mar transaction:

56a0a203297872aa8f5f997f4430413ab8f28d727340d47ba5d94103d9b4c18b


The question mark still shows on the left side of the qt. It SUBTRACTED the coins for stake right? Well I currently have 0.00 coins in my wallet under 'Stake'. It is as if the coins were supposed to be sent to stake but actually just disappeared.

It isn't happening for every stake. This error has happened only 3 times this year (out of about 70-130).

You're giving transactions that do not exist.  If you have no coins in your wallet, either the coins were never staked, or were stakes successfully and you spent them (or you need to restart the client - without any valid information to look at, who knows?).  Provide the address that received the coins and a time/date they were received.

My point of posting those transactions was for you to see that they do not exist. But you saw the screenshot from my wallet. Also, POS always shows 0.00--I imagine that is because nothing is being sent to another address. When you earn coins from POS, it still shows 0.00, so that means nothing in terms of saying I gained coins or lost coins.

I honestly cannot say if those last couple transactions actually caused a decrease in total coins in my wallet. However, the first time it happened, I am pretty certain it did (I didn't have many coins in my wallet at the time. so I noticed 500 coins gone). Either way, this is STILL a big problem that I think needs to be addressed. I'm afraid the only way for me to know for certain is to lose thousands in one stake, but then you may not believe me even then.

What it shows right now is that I have 875 total coins sent to stake, but they have never come back nor are they in the block explorer as having been sent to stake at all. Whether you believe I am actually missing coins or not, that is what it SHOWS. If they were orphaned, there needs to be a way to indicate that?

Orphaned stake transactions are currently confusing that's for sure. For now, you can spot them with the question mark to the left (signifying an undefined transaction) and in the transaction details it says "Status: 0/unconfirmed". Orphaned blocks are supposed to have their transactions removed from the client wallet's transaction database. It works for orphaned POW blocks, but there is a bug in Reorganize which is making the orphaned POS block transactions hang around even after closing and reopening. When the next version of the yacoin client gets released there are changes in place to ignore orphaned POS transactions so they won't show up in the transaction list after a restart of the client. But as of now the bug will still manifest itself in the "Number of transactions:" field on the main window.

There are also changes in place to report the actual number of coins gained from your POS blocks in the transaction list, instead of reporting the number of staked coins. And a new transaction category has been added called "Stake interest" which will allow you to more easily count up how much interest you have earned. I'm sure this will stop people from thinking their wallets have lost coins, since the interest generated from a POS block is much smaller then the number of coins staked.
hero member
Activity: 809
Merit: 501
March 09, 2014, 10:29:25 AM
ThirtyBird, I don't understand.

18 Jan transaction:

c0da477d4db7c4f82342a3f65e0c6bdc2d7ebfea7a220102a504ab3b4e156ad5

7 Mar transaction:

56a0a203297872aa8f5f997f4430413ab8f28d727340d47ba5d94103d9b4c18b


The question mark still shows on the left side of the qt. It SUBTRACTED the coins for stake right? Well I currently have 0.00 coins in my wallet under 'Stake'. It is as if the coins were supposed to be sent to stake but actually just disappeared.

It isn't happening for every stake. This error has happened only 3 times this year (out of about 70-130).

You're giving transactions that do not exist.  If you have no coins in your wallet, either the coins were never staked, or were stakes successfully and you spent them (or you need to restart the client - without any valid information to look at, who knows?).  Provide the address that received the coins and a time/date they were received.

My point of posting those transactions was for you to see that they do not exist. But you saw the screenshot from my wallet. Also, POS always shows 0.00--I imagine that is because nothing is being sent to another address. When you earn coins from POS, it still shows 0.00, so that means nothing in terms of saying I gained coins or lost coins.

I honestly cannot say if those last couple transactions actually caused a decrease in total coins in my wallet. However, the first time it happened, I am pretty certain it did (I didn't have many coins in my wallet at the time. so I noticed 500 coins gone). Either way, this is STILL a big problem that I think needs to be addressed. I'm afraid the only way for me to know for certain is to lose thousands in one stake, but then you may not believe me even then.

What it shows right now is that I have 875 total coins sent to stake, but they have never come back nor are they in the block explorer as having been sent to stake at all. Whether you believe I am actually missing coins or not, that is what it SHOWS. If they were orphaned, there needs to be a way to indicate that?
hero member
Activity: 693
Merit: 500
March 09, 2014, 01:01:12 AM
ThirtyBird, I don't understand.

18 Jan transaction:

c0da477d4db7c4f82342a3f65e0c6bdc2d7ebfea7a220102a504ab3b4e156ad5

7 Mar transaction:

56a0a203297872aa8f5f997f4430413ab8f28d727340d47ba5d94103d9b4c18b


The question mark still shows on the left side of the qt. It SUBTRACTED the coins for stake right? Well I currently have 0.00 coins in my wallet under 'Stake'. It is as if the coins were supposed to be sent to stake but actually just disappeared.

It isn't happening for every stake. This error has happened only 3 times this year (out of about 70-130).

You're giving transactions that do not exist.  If you have no coins in your wallet, either the coins were never staked, or were stakes successfully and you spent them (or you need to restart the client - without any valid information to look at, who knows?).  Provide the address that received the coins and a time/date they were received.
newbie
Activity: 25
Merit: 0
March 08, 2014, 11:29:20 PM
Can someone explain this transaction? Coins supposed to be sent to be staked, but they just disappear?
I'm pretty sure I fixed this problem, but i'm not sure if the current yacoin client is built with the fix. My fixes for POS transactions in the QT client transaction list got merged after the big mandatory 0.4.2 release was made, so you may have to wait until another release is made. If you are willing to build the master branch yourself and try it out, instructions can be found here: https://github.com/yacoin/yacoin/blob/master/doc/build-msw.txt

By 'fix' do you mean it won't happen again, AND I will get those lost coins back?
I believe what you are looking at are orphaned POS blocks you have created. The transaction amount to the right is zero, which means no coins were subtracted from your wallet by the transaction. As soon as the block explorer comes back up it should be very clear what happened to those transactions. I also addressed this issue in a pull request that hasn't been merged yet. https://github.com/yacoin/yacoin/pull/30

EDIT: The block explorer came back up. Those transactions don't appear to exist in the block chain. The block explorer probably purged them since they were in orphaned blocks. Your coins are safe and sound in your wallet.
hero member
Activity: 809
Merit: 501
March 08, 2014, 10:47:08 PM


Can someone explain this transaction? Coins supposed to be sent to be staked, but they just disappear?

Once the stake clears, it shows up when you restart the wallet for sure.


I should have taken a screenshot of the 18 Jan transaction. Those coins still haven't come back... It has happened three times now and the amounts are ~500, ~250, ~125. I'm very afraid of it happening again with much bigger stake. I'm wondering if I'll ever get those coins back. I'm surprised more people haven't had/brought up this issue. POS coins just simply disappearing seems like a big problem.

I guarantee you they came back if they were POSed.  You just have to know how to look for them.

ThirtyBird, I don't understand.

18 Jan transaction:

c0da477d4db7c4f82342a3f65e0c6bdc2d7ebfea7a220102a504ab3b4e156ad5

7 Mar transaction:

56a0a203297872aa8f5f997f4430413ab8f28d727340d47ba5d94103d9b4c18b


The question mark still shows on the left side of the qt. It SUBTRACTED the coins for stake right? Well I currently have 0.00 coins in my wallet under 'Stake'. It is as if the coins were supposed to be sent to stake but actually just disappeared.

It isn't happening for every stake. This error has happened only 3 times this year (out of about 70-130).
hero member
Activity: 693
Merit: 500
March 08, 2014, 07:36:28 PM


Can someone explain this transaction? Coins supposed to be sent to be staked, but they just disappear?

Once the stake clears, it shows up when you restart the wallet for sure.


I should have taken a screenshot of the 18 Jan transaction. Those coins still haven't come back... It has happened three times now and the amounts are ~500, ~250, ~125. I'm very afraid of it happening again with much bigger stake. I'm wondering if I'll ever get those coins back. I'm surprised more people haven't had/brought up this issue. POS coins just simply disappearing seems like a big problem.

I guarantee you they came back if they were POSed.  You just have to know how to look for them.
hero member
Activity: 809
Merit: 501
March 08, 2014, 06:08:50 PM


Can someone explain this transaction? Coins supposed to be sent to be staked, but they just disappear?

Once the stake clears, it shows up when you restart the wallet for sure.


I should have taken a screenshot of the 18 Jan transaction. Those coins still haven't come back... It has happened three times now and the amounts are ~500, ~250, ~125. I'm very afraid of it happening again with much bigger stake. I'm wondering if I'll ever get those coins back. I'm surprised more people haven't had/brought up this issue. POS coins just simply disappearing seems like a big problem.
hero member
Activity: 693
Merit: 500
March 08, 2014, 04:28:14 PM


Can someone explain this transaction? Coins supposed to be sent to be staked, but they just disappear?

Once the stake clears, it shows up when you restart the wallet for sure.
hero member
Activity: 802
Merit: 1003
GCVMMWH
March 08, 2014, 02:46:48 PM
Before anyone panics!  Wink yacoin.org will be down for a bit while some updates are made. This will also affect the explorer page.

hero member
Activity: 809
Merit: 501
March 08, 2014, 02:15:49 PM
Can someone explain this transaction? Coins supposed to be sent to be staked, but they just disappear?
I'm pretty sure I fixed this problem, but i'm not sure if the current yacoin client is built with the fix. My fixes for POS transactions in the QT client transaction list got merged after the big mandatory 0.4.2 release was made, so you may have to wait until another release is made. If you are willing to build the master branch yourself and try it out, instructions can be found here: https://github.com/yacoin/yacoin/blob/master/doc/build-msw.txt

By 'fix' do you mean it won't happen again, AND I will get those lost coins back?
Pages:
Jump to: