Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: mr.tall on September 05, 2017, 10:51:56 AM



Title: How to manage transaction for web-wallet with PoS?
Post by: mr.tall on September 05, 2017, 10:51:56 AM
Hello
I have one issue with users balance.
One my website i need to charge user balance with altcoins.
Flow looks like: check for new transaction, if category receive and if confirmation > 3, find user ID by wallet number, add to DB this transaction and charge user account.
And it's works good for typical PoW coins. But on coins with PoS (ex. BlackCoin) time to time I get transaction for PoS. There is also category receive, but immediately after this receive i get send transaction.
If I don't need this transaction on user history? How I can recognise PoS transaction? What is the best practise?


Title: Re: How to manage transaction for web-wallet with PoS?
Post by: Casimir1904 on September 06, 2017, 12:08:00 AM
Has nothing to do with bitcoin but I suggest you look at something like "generated" and ignore those Transactions.
Or just disable staking.


Title: Re: How to manage transaction for web-wallet with PoS?
Post by: mr.tall on September 06, 2017, 09:14:06 AM
Has nothing to do with bitcoin but I suggest you look at something like "generated" and ignore those Transactions.
Or just disable staking.
Wow, thank you a lot, thats actually what I exactly need!