TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)

Started by Rob Andrews, March 24, 2019, 01:17:09 PM

Previous topic - Next topic

uptimeminer

On TestNet...Can you please send tBBP: ygM8C2FbeMxSCd77TNZNAyTUmym9nwgCFL

Rob Andrews

Quote from: uptimeminer on March 28, 2019, 09:55:00 PM
On TestNet...Can you please send tBBP: ygM8C2FbeMxSCd77TNZNAyTUmym9nwgCFL

Welcome aboard; please hang on.

I noticed last night an unusually high amount of spam in our debug logs.

Let me take care of this spam, the mandatory upgrade version, and anything that looks strange, and then make a release for testnet.

ETA about 3 more hours.


oncoapop

Quote from: Rob Andrews on March 28, 2019, 07:40:04 PM
EDIT:

Ill need to release a mandatory upgrade tomorrow morning to ensure everyone is on the same chain.  We have too many old versions floating around.

Dear Rob,
Thank you for all your hard work that MIP and you and others have put into the development and maintenance. Glad to help and be part of testnet.
Can I make one small suggestion, if I may?  Each time after a Mandatory Update - at least on Testnet where this is so frequent - can you kindly post the latest block and blockhash so that we can all periodically check that we are on the right chain as we may have missed these frequent updates as we were away or something.
That would be greatly appreciated! Thank you.

Rob Andrews

Quote from: oncoapop on March 29, 2019, 07:46:07 AM
Dear Rob,
Thank you for all your hard work that MIP and you and others have put into the development and maintenance. Glad to help and be part of testnet.
Can I make one small suggestion, if I may?  Each time after a Mandatory Update - at least on Testnet where this is so frequent - can you kindly post the latest block and blockhash so that we can all periodically check that we are on the right chain as we may have missed these frequent updates as we were away or something.
That would be greatly appreciated! Thank you.

Yes, will do.  I already realize that this needs done, but what intereferes in testnet, sometimes our testnet chain legally continues after I shut my nodes down.  Meaning that you guys are technically the ones that should post a good hash on the forum once all the nodes resync (as sometimes its out of my control).

But anyhow, in this case, we are making a mandatory that will require us all to delete our cached gov objs, and resync, so I think in this case I will be able to post a good hash after we all upgrade.

Building...

Rob Andrews

1.4.0.5 - TestNet Mandatory Upgrade

- 2 min testnet blocks in testnet after block 5000 (diff was too low for
anti-fork code)
- Remove log spam
- Add GSCTransmission icon to txlist
- Fix getchaintips
- Add end_epoch to GSC Smart contract (prevents a type of validation
error)
- Verify CPK is in good standing before transmitting a GSC transmission
- Correct block subsidy on GSC server side total to account for first
reward
- Disconnect old versions (prior to 1405 in testnet)
- Add feature to logger to prevent duplicate log rows


** Critical instructions for upgrade:  Please clean the blocks data first, then restart the node, and in addition please ensure you delete these governance files:


rm blocks -r
rm chainstate -r
rm evodb -r
rm gov*
rm mnc*
rm mnp*



(One of our superblock calculations was incorrect -- and its cached in our nodes, hence the reason we went off the rails, so now we have to ensure this data is deleted before restarting).

The chain is rolling back to block 3500 or so, will post a hash.



Rob Andrews

I'm in agreement on 3 nodes:


getblockhash 3550

c4dafb2ddfa0a3f734fda2049c1a54ad46b4b87d19e0c11ac1d0cca6ac5d3812


Please ensure your sancs have enough collateral (if you started them after 3550) and that you rejoin the pog campaign if you joined after 3550.


Rob Andrews

Also, please re-enter any proposals again.  I re-entered one.


Rob Andrews

Quote from: uptimeminer on March 28, 2019, 09:55:00 PM
On TestNet...Can you please send tBBP: ygM8C2FbeMxSCd77TNZNAyTUmym9nwgCFL

I lost most of my non-sanc funds; sent 125k to start.  Please remind us in another 500 blocks and we can send more.


rastiks

OK, seems I am back on the correct chain.

How come that I lost most of my tBBP in the meantime ? (over 2 000 000)
I deleted all files except wallet.dat before starting the newest version.

I see many debit transactions like these:


{
    "account": "",
    "address": "yPpyP7oXSH4e5jq8kQuCYFdDnDFbX1B7xU",
    "category": "send",
    "amount": -407184.34410700,
    "label": "CHRISTIAN-PUBLIC-KEY",
    "vout": 1,
    "fee": -0.00500000,
    "confirmations": 0,
    "instantlock": false,
    "Anti-BotNet-Transaction": true,
    "trusted": false,
    "txid": "a559a4c16f2c1f6a937412620538da1d0cb4f1dd10fddf7d61b432b0c43d500d",
    "walletconflicts": [
    ],
    "time": 1553805526,
    "timereceived": 1553805536,
    "abandoned": false
  },


there are no matching credit transations for those..

rastiks

exec prominence shows empty list now for me:


biblepay-cli exec prominence
{
}


getblockhash 4109
341d64d1b90f739dd16500834dffea8e6a4cc3bc514a8ebf0f9fd8467c077de1

Rob Andrews

Quote from: rastiks on March 29, 2019, 02:53:04 PM
exec prominence shows empty list now for me:


biblepay-cli exec prominence
{
}


getblockhash 4109
341d64d1b90f739dd16500834dffea8e6a4cc3bc514a8ebf0f9fd8467c077de1

Yeah, this is because most of our testnet members lost most of their coin-age, and their miner has not sent a new GSC transmission since, so therefore that particular superblock was empty.  I just set the spork to make our gsc transmissions more frequent for now (once an hour) - but this requires you to reboot the wallet.

(Next version has a command to send a GSC manually also btw).

So far it looks like we are staying in sync now.

Btw your hash matches.  I did receive a payment in the first superblock, and like everyone else waiting for the next GSC transmission.


Rob Andrews

Quote from: rastiks on March 29, 2019, 02:41:06 PM
OK, seems I am back on the correct chain.

How come that I lost most of my tBBP in the meantime ? (over 2 000 000)
I deleted all files except wallet.dat before starting the newest version.

I see many debit transactions like these:


{
    "account": "",
    "address": "yPpyP7oXSH4e5jq8kQuCYFdDnDFbX1B7xU",
    "category": "send",
    "amount": -407184.34410700,
    "label": "CHRISTIAN-PUBLIC-KEY",
    "vout": 1,
    "fee": -0.00500000,
    "confirmations": 0,
    "instantlock": false,
    "Anti-BotNet-Transaction": true,
    "trusted": false,
    "txid": "a559a4c16f2c1f6a937412620538da1d0cb4f1dd10fddf7d61b432b0c43d500d",
    "walletconflicts": [
    ],
    "time": 1553805526,
    "timereceived": 1553805536,
    "abandoned": false
  },


there are no matching credit transations for those..

We rolled back 24 hours primarily because I found that the first superblock created had a piece of bad business logic for the first amount, so I moved back to before that first superblock.

Your wallet probably has some orphaned debits, just restart with:
-zapwallettxes=1

And they should then be free.


rastiks

Quote from: Rob Andrews on March 29, 2019, 03:27:37 PM
We rolled back 24 hours primarily because I found that the first superblock created had a piece of bad business logic for the first amount, so I moved back to before that first superblock.

Your wallet probably has some orphaned debits, just restart with:
-zapwallettxes=1

And they should then be free.

right, -zapwallettxes=1 helped, thanks!

uptimeminer


QuoteI lost most of my non-sanc funds; sent 125k to start.  Please remind us in another 500 blocks and we can send more.


Thanks Rob... Got the TestNet payment...Looks like I will have plenty tBBP from mining payments..

getblockhash 4316 - d111449fa5aa59f9c042eab06cfdb053f2e5703ca0ea38db70cb2cb3910ed362

...Look ok?

Rob Andrews

Quote from: uptimeminer on March 29, 2019, 04:14:55 PM

Thanks Rob... Got the TestNet payment...Looks like I will have plenty tBBP from mining payments..

getblockhash 4316 - d111449fa5aa59f9c042eab06cfdb053f2e5703ca0ea38db70cb2cb3910ed362

...Look ok?
Yes, perfect.    If you need any more I have more now, please dont hesitate to ask.