Bible Pay

Read 6049 times

  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #225 on: April 18, 2019, 08:34:12 am »
I'm seeing this hash:
getblockhash 37124
1e0d0a836d61d246d0202507747a71e2960eaf683668d45b38365616cbed6ffa

Last night I recreated my 3 sancs and enabled them but through the night people upgraded and reorganized and erased the block I sent my 4.5MM in.
I just recreated my 3 legacy sancs again; re-starting sancs now.





  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #226 on: April 18, 2019, 09:13:15 am »
Actually it looks like we are encountering a brand new Evo-specific issue as of a new block from yesterday:

2019-04-18 13:59:56 ERROR: ConnectBlock(): ProcessSpecialTxsInBlock for block 4b1205177d60daa173491b742e39501ae29a48605bf3ed617ade77149feb6fb2 failed with bad-protx-collateral (code 16)

It looks like two of us tried to create deterministic sancs before the spork was enabled.  But what is interesting is this was legal yesterday but today the block is actually being rejected.  (I can understand that partially since all the sancs are disabled right now), but what is interesting to me is that we reject the entire block if the Pro-reg-tx fails.

Let me take a look at this issue in detail.  In the mean time I think the only way to sync is to re-sync every node to before 34510 occurred.



  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #227 on: April 18, 2019, 09:24:00 am »
Actually it looks like we are encountering a brand new Evo-specific issue as of a new block from yesterday:

2019-04-18 13:59:56 ERROR: ConnectBlock(): ProcessSpecialTxsInBlock for block 4b1205177d60daa173491b742e39501ae29a48605bf3ed617ade77149feb6fb2 failed with bad-protx-collateral (code 16)

It looks like two of us tried to create deterministic sancs before the spork was enabled.  But what is interesting is this was legal yesterday but today the block is actually being rejected.  (I can understand that partially since all the sancs are disabled right now), but what is interesting to me is that we reject the entire block if the Pro-reg-tx fails.

Let me take a look at this issue in detail.  In the mean time I think the only way to sync is to re-sync every node to before 34510 occurred.

Ok.  I see whats going on here.  At first it seems a little strange that a single bad pro-reg tx could fork the chain (because business logic rejects the entire block that contains the bad pro-reg) -- but thats not whats really happening in the bigger picture. 

In the bigger picture we will always have a supermajority of sancs online in prod to make the call, so with sancs actually online, the pro-reg would have been processed or the sanc-quorum would have rejected the block.

The rule goes like this:  For chainlocks, llmqs, and pro-reg-special-transactions, all of these are forwarded to a processor that checks validity based on the llmq (long living masternode quorum), and if any fail, the entire block is rejected.

So what we need to do first everyone, please re-sync your chain to before 34510 and please do not send any 'upgradesanc' commands or pro-regs until we successfully recreate our sanc quorum with 4.5 mm locks.  Also just to be safe, lets ensure diff is > 1.0 and we solve the next GSC superblock after that with exec health showing true.

Then we can re-group and talk about testing the next layer(s).



  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #228 on: April 18, 2019, 12:08:06 pm »
Ok, Ive resynced all my nodes and restarted my sancs  - they went to enabled, Im seeing this hash:

getblockhash 34746
123eebf58f402f349adc10d578ef80a9e8a4200a45326db28b6eb39ab0b364a8


  • MIP
  • Developer

    • 189


    • 24
    • February 13, 2018, 11:55:52 am
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #229 on: April 19, 2019, 05:27:11 am »
1.4.1.7 - Mandatory Upgrade for TestNet


I compiled a version of the daemon/cli for Linux amd64, available here
https://www.biblepay.org/biblepayd-1.4.0.7-x86_64-pc-linux-gnu.tar.gz

And MacOS QT version here
https://www.biblepay.org/biblepaycore-testnet.dmg


  • vuli
  • Newbie

    • 29


    • 1
    • June 02, 2018, 02:28:10 pm
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #230 on: April 19, 2019, 12:25:21 pm »
I am stuck the whole day at Syncing Headers 96,3% , progress bar  is  2sec behind.

19:25:02
getblockhash 36743

19:25:02
d7d64e0701e5480e3b53429d7015b03ae0351c025dfd6d4de9c86f05f8294bd6


  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #231 on: April 19, 2019, 12:32:52 pm »
I am stuck the whole day at Syncing Headers 96,3% , progress bar  is  2sec behind.

19:25:02
getblockhash 36743

19:25:02
d7d64e0701e5480e3b53429d7015b03ae0351c025dfd6d4de9c86f05f8294bd6

I took a look at that stuck 1-10 second behind header issue, and it turns out what that means is your node doesn't have a fully synced gobject list (IE it believes the masternodes and gobjects are not synced) - also, if you do an mnsync status, you are probably in chain synced true and gobjects synced = false. 
Another words, that is a feature that lets you know something is wrong with the mnsync status only.

EDIT: Ok, so yes you are synced on the blockchain - my hash agrees.

I think you just have a bad mncache.

Try this:  stop node, rm mnc*.*, rm gov*, rm mnp*,  restart wallet, wait 10 mins - see if mnsync status shows all trues then and the bar dissapears?





  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #232 on: April 19, 2019, 12:35:33 pm »
I see someone was nice enough to enter about 15 proposals right before we upgraded!

Thanks!

Who was that btw?

Unfortunately all this work was in vain because we had the mandatory upgrade right after, and there were no sancs around to vote at that height for that superblock (see getgovernanceinfo, see last superblock height), that block ended up turning out to be a regular block.

This is to be expected in this case.

So please let us do it again soon.



  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #233 on: April 19, 2019, 01:05:41 pm »
I compiled a version of the daemon/cli for Linux amd64, available here
https://www.biblepay.org/biblepayd-1.4.0.7-x86_64-pc-linux-gnu.tar.gz

And MacOS QT version here
https://www.biblepay.org/biblepaycore-testnet.dmg

Thanks - added the Mac version to the OP post.



  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #234 on: April 19, 2019, 02:32:24 pm »
Please ensure your hashes match - someone came on with high hash:
getblockhash 36743
d7d64e0701e5480e3b53429d7015b03ae0351c025dfd6d4de9c86f05f8294bd6




  • vuli
  • Newbie

    • 29


    • 1
    • June 02, 2018, 02:28:10 pm
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #235 on: April 19, 2019, 05:22:50 pm »
I had to delete everything, than it synced headers as well.


  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #236 on: April 19, 2019, 09:45:28 pm »
I had to delete everything, than it synced headers as well.

Glad you are synced.  I believe your headers were already synced before this step. 

« Last Edit: April 20, 2019, 09:46:44 am by Rob Andrews »


  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #237 on: April 20, 2019, 09:49:40 am »
So I found a "bug" in 1417.  It appears that when we move to dip3, our sancs cant sign the signature for one of our features properly (primarily because the structure of this feature has changed in Evo, so its really a class change that breaks compatibility with one of our old methods).

This means I need to upgrade the function in 1418 and have another mandatory release.

It looks like Im the only one who updated my sancs so far (I see my 3 online) so hopefully this wont be too big a deal.

Please hold off on testing while I fix this. 





  • Rob Andrews
  • Administrator

    • 1908


    • 25
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #238 on: April 20, 2019, 01:37:03 pm »
1.4.1.8-Mandatory Upgrade for TestNet

- Improve GSC consensus rule
- Add historical BTC price to each gsc superblock for future reports
- Prevent multiple UI popups within 7 seconds


  • MIP
  • Developer

    • 189


    • 24
    • February 13, 2018, 11:55:52 am
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #239 on: April 21, 2019, 05:48:32 am »
1.4.1.8-Mandatory Upgrade for TestNet

- Improve GSC consensus rule
- Add historical BTC price to each gsc superblock for future reports
- Prevent multiple UI popups within 7 seconds

Daemon/cli for Linux amd64, available here
https://www.biblepay.org/biblepayd-1.4.0.8-x86_64-pc-linux-gnu.tar.gz

And MacOS QT version here
https://www.biblepay.org/biblepaycore-testnet.dmg