Pages:
Author

Topic: [ANN] StrongHands - Hybrid PoS/PoW Min Stake - 30 days - page 52. (Read 79763 times)

hero member
Activity: 728
Merit: 500

i'm auctioning off 1,000,000,000 coins

reserve starts at 10k bumba, seems a steal Smiley


https://www.cryptopia.co.nz/MarketPlaceAction/MarketItem?marketItemId=3922

closes in just under 3 days ...

I guess I missed out on the deal.  Grin



Quiet here. Smiley

Anything new for StrongHands?  I picked some up from cryptopia, they are cheap as heck.  Grin
legendary
Activity: 1638
Merit: 1036

i'm auctioning off 1,000,000,000 coins

reserve starts at 10k bumba, seems a steal Smiley


https://www.cryptopia.co.nz/MarketPlaceAction/MarketItem?marketItemId=3922

closes in just under 3 days ...
hero member
Activity: 728
Merit: 500
wow had a bunch of flashbacks seeing cryptsy in the ANN title. lol

I wonder if the owner of this thread is still around to change the ANN title from Cryptsy to Cryptopia!

sr. member
Activity: 518
Merit: 250
wow had a bunch of flashbacks seeing cryptsy in the ANN title. lol
hero member
Activity: 728
Merit: 500
and now market is re-opened on cryptopia !!

Wow, looks like you saved SHND from a certain death!

Well done. I might just get back into the SHND game again  Grin
legendary
Activity: 1638
Merit: 1036

i'm auctioning off 1,000,000,000 coins

reserve starts at 10k bumba, seems a steal Smiley


https://www.cryptopia.co.nz/MarketPlaceAction/MarketItem?marketItemId=3922
legendary
Activity: 1638
Merit: 1036
and now market is re-opened on cryptopia !!
legendary
Activity: 1638
Merit: 1036

cryptopia have been notified and have apparently updated,
market is still closed ..

i asked again about market re-opening and just got the reply
"Hi bumbacoin,  SHND has now been updated.    Thanks Cryptopia Support"

lol,

perhaps if others were to ask as well Smiley
legendary
Activity: 1288
Merit: 1000
CRYPTO-CITY.COM 🌟 Communities
Notify Cryptopia so they can re-open the market.
legendary
Activity: 1638
Merit: 1036
minor update v 0141

https://drive.google.com/open?id=0B5j8d4FSc7drSEw5X3g4RXh4Snc


this will now account for fees in calculating final send value.
if you manually set fees > 1, you can still break the previous version wallet v0140. lol

this update is not a necessary update from v0140, it's highly unlikely you'll ever need to manually adjust fees.
but is advisable if you are running v012x and have a balance larger than 2 billion.

-
for brief history of issue being resolved.
https://bitcointalksearch.org/topic/m.17832071
legendary
Activity: 1470
Merit: 1010
Join The Blockchain Revolution In Logistics
bumba much respect!
legendary
Activity: 1638
Merit: 1036

just discovered SHND is on novaexchange, have let them know what's going on.
https://novaexchange.com/market/DOGE_SHND/ and other pairings…

are we listed anywhere else ??
legendary
Activity: 1638
Merit: 1036
Introducing 2nd generation fix !!!

Reducing possible spend amount to 1 billion coins,
https://github.com/bumbacoin/stronghands/releases/tag/v0140




..

will test further and see about increasing maximum spend value.
but for now, the new version will limit spend to 1,000,000,000

this is due to a bug where the combined inputs of a transaction may exceed MAX_MONEY and break wallet.
https://bitcointalksearch.org/topic/sending-combined-inputs-exceeding-maxmoney-in-ppc-breaks-wallet-1790622

the logic of reducing max spend to 1 billion is that two inputs of over 1 billion may combine to exceed 2 billion.

eg. two inputs of 1.1 billion,
sending 1.2 billion will combine those two inputs to a value of 2.2 billion which is > MAX_MONEY



For anyone with a broken wallet

it is the wallet.dat that is borken.
there is a tx in the wallet.dat that is being rejected by the code.
if you have a backup you should be able to just use the backup (will not have borked tx) and all will be fine.

alternatively,
i have compiled a SPECIAL QT with increased Max Money !!!!
this should enable you to open your wallet and extract the privkeys,
then you can import them into a new wallet

please PM me and i'll send you a copy.
it's not for general use.

this is the expected error for such a borken wallet
Code:
EXCEPTION: St13runtime_error       
CWallet::GetDebit() : value out of range      
ppcoin in ThreadStakeMinter()      

terminate called after throwing an instance of 'std::runtime_error'
  what():  CWallet::GetDebit() : value out of range
legendary
Activity: 1638
Merit: 1036

oops, further testing means the quickfix isnt as useful as i first thought.

the problem lies where the combine transaction inputs exceed 2 billion.

so if you have two inputs of 1.2 billion, and you send even 1.3 billion coins,
then because the outputs of 1.3 + 1.1 (change) = 2.4 billion > MAX_MONEY
then the wallet will break.

am still working on it,
i hope to allow sending amounts of 2 billion.

but the obvious next step quick fix is to reduce possible sending to 999,999,999

so please, for now with any current available client, do not send 1 billion or over Smiley
sr. member
Activity: 358
Merit: 250
A big thank you to bumbacoin/pineapples, he fixed the SHND wallet issue I experienced and was able to retrieve my coins.

Just letting everyone know in case you ran into a similar issue, his solution works.





Here's a new Win wallet with the MAX_MONEY quickfix.

https://github.com/bumbacoin/stronghands/releases/tag/0130

basically it will only allow you to send a maximum amount of 1999999999 coins.
preventing the broken wallets that have been happening.

it is not a mandatory upgrade, it is only to prevent a possible breakage of yr wallet.

..

For anyone with a broken wallet

i have compiled a SPECIAL QT with increased Max Money !!!!
this should enable you to open your wallet and extract the privkeys,
then you can import them into a new wallet

please PM me and i'll send you a copy.
it's not for general use.

this is the expected error for such a borken wallet
Code:
EXCEPTION: St13runtime_error       
CWallet::GetDebit() : value out of range      
ppcoin in ThreadStakeMinter()      

terminate called after throwing an instance of 'std::runtime_error'
  what():  CWallet::GetDebit() : value out of range
legendary
Activity: 1638
Merit: 1036
Sadly first quick fix (v0130) didnt work for all occasions.
See below for second fix Smiley v0140



https://github.com/bumbacoin/stronghands/releases/tag/v0140


..

For anyone with a broken wallet

i have compiled a SPECIAL QT with increased Max Money !!!!
this should enable you to open your wallet and extract the privkeys,
then you can import them into a new wallet

please PM me and i'll send you a copy.
it's not for general use.

this is the expected error for such a borken wallet
Code:
EXCEPTION: St13runtime_error       
CWallet::GetDebit() : value out of range      
ppcoin in ThreadStakeMinter()      

terminate called after throwing an instance of 'std::runtime_error'
  what():  CWallet::GetDebit() : value out of range
legendary
Activity: 1638
Merit: 1036
okay,
well this error exists in current Peerunity code
https://github.com/Peerunity/Peerunity/issues/199

so i'm guessing all the PPC clones have it ??
obviously only a problem in a coin with so much cash that any pleb can have more than MAX_MONEY.

legendary
Activity: 1638
Merit: 1036
if anyone has any suggestions as to why the code treats the  pre /post error checks differently please add your voice Smiley

you can see below,
that as long as txout.nValue and nDebit are the same everything should be fine,
however, the problem with current code is that it seems to fails on the Debit check.
(which is after the tx is added to the wallet, so the wallet then fails to load.)


https://github.com/bumbacoin/stronghands/blob/master/src/wallet.h#L182
Code:
    int64 GetCredit(const CTxOut& txout) const
    {
        if (!MoneyRange(txout.nValue))
            throw std::runtime_error("CWallet::GetCredit() : value out of range");
        return (IsMine(txout) ? txout.nValue : 0);
    }

https://github.com/bumbacoin/stronghands/blob/master/src/wallet.h#L209
Code:
    int64 GetDebit(const CTransaction& tx) const
    {
        int64 nDebit = 0;
        BOOST_FOREACH(const CTxIn& txin, tx.vin)
        {
            nDebit += GetDebit(txin);
            if (!MoneyRange(nDebit))
                throw std::runtime_error("CWallet::GetDebit() : value out of range");
        }
        return nDebit;



here's an example of failing transaction,
this is after some fucking around, so pure value MAX_MONEY as tx limit is not being used,
ie not 2billion coins being sent, from memory i have no idea what was being used at the time . lol but it is true to the behaviour of sending over 2billion

Code:
sendtoaddress Sh1A3HKCmWHXiwLAEPUDhAH2JhCwxQHbqA 1999999999.999999
error: {"code":-4,"message":"Error: The transaction was rejected.  This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."}

from debug.log
Code:
CommitTransaction:
CTransaction(hash=1296fcf30a, nTime=1486976866, ver=1, vin.size=2, vout.size=2, nLockTime=0)
    CTxIn(COutPoint(ae178efe20, 0), scriptSig=3046022100d9b652c2500088)
    CTxIn(COutPoint(b47018e531, 1), scriptSig=30460221008bebbd1a7d525a)
    CTxOut(nValue=0.870001, scriptPubKey=OP_DUP OP_HASH160 6d24e85c6fda83f7454e20f4796abf16848a0d5b OP_EQUALVERIFY OP_CHECKSIG)
    CTxOut(nValue=1999999999.999999, scriptPubKey=OP_DUP OP_HASH160 d832f6a6d6b39a2631c26fe42c8f049795840fdc OP_EQUALVERIFY OP_CHECKSIG)
keypool keep 9
AddToWallet 1296fcf30a  new
WalletUpdateSpent found spent coin 1999999999.98ppc ae178efe20c6fcdaac9197087b5ef5378392f6fde0a01871c9538d06e61c0041
WalletUpdateSpent found spent coin 1999999999.97ppc b47018e53178a5e80a78dcc60f40d2058953a5d873ec6f22c451b0d59b571fce
ERROR: CTransaction::CheckTransaction() : txout total out of range
ERROR: CTxMemPool::accept() : CheckTransaction failed
CommitTransaction() : Error: Transaction not valid
legendary
Activity: 1638
Merit: 1036
i have a quickfix for the problem
https://github.com/bumbacoin/stronghands/commit/8bc58843f43012e142beff29a8fcbb7a37c8ed5b

encouraging clients to reject transactions at 1999999999 coins.

will build clients tomorrow.


..
there is some issue with the way the code handles values,

previously a transaction would pass through the credit check (creating the tx),
enter into the wallet db,
but then fail on the debit check (loading the tx) causing the wallet to refuse to load and quit

..
with this "fix"
    if (dAmount <= 0.0 || dAmount > ((MAX_MONEY / COIN) -1))

it appears that it should reject values of >1999999999
but it still accepts transactions of 1999999999.00000011

so not really sure where the discrepancy in handling is.
legendary
Activity: 1638
Merit: 1036
i am helping with glorytimes wallet issue,

here is a run down of the issue.

all transactions are checked against the variable MAX_MONEY (2billion coins) to ascertain they do not exceed it.
official code will allow transactions to enter the wallet.dat that further error checks will reject, effectively breaking the wallet.dat

if you have two inputs in your wallet of 1.1 billion coins, you send 1.2 billion,

the transaction value is 1.2 billion which is < 2 billion, which passes the first round error check and gets entered into the wallet.dat

soon enough another round of checks looks at all inputs and outputs.
1.1 input + 1.1 input = 1.2 tx output + 1.0 change output + fee = 2.2 billion which is not < 2 billion
so the next error check fails.

and yr wallet is now geborken !!

--

fixes so far do not require any fork, and are compatible with official qt's,
it is only that the official qt's allow you to break your wallet ( as happened with glorytime ).

--

if you have geborken your wallet,
i have compiled a special increased max_money qt, that should enable you to load your wallet, and export your privkeys to import into a clean wallet.
PM me Smiley


--
this code bug exists in the Peerunity code base, however it is highly unlikely to ever be an issue for PPC.
to be an issue

some wallet must have a balance > max_money

Stronghands currently has around 90billion coin supply, which is 45x the value of MAX_MONEY ( 2 billion)

there are other coins out there that might have the conditions necessary !! be alert !!
Pages:
Jump to: