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

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

Previous topic - Next topic

Rob Andrews

1.4.0.2-TestNet Mandatory Upgrade

- Enable Anti-botnet-rules and sporks
- Disconnect from pre 1402 nodes
- Ensure daily superblocks honor avg trailing difficulty level (this
ensures emission is within the Covenant)
- Enable Proposal Add
- Fix Proposal List Voting issue
- Fix bad Bezaleel graphics
- Enable CPK icon in TxList
- Scan for duplicates in nicknames before accepting CPK nickname
- Add nickname to exec prominence
- Ensure Sanc Quorum can create a conforming contract
- Increment Gov Testnet version in attempt to remove status bar warning

EDIT: The download link has not changed:
https://biblepay.org/biblepaycore-1.4.0-win32-setup.exe


madmurphy

I have downloaded the new version but I seem to be stuck connecting to peers ?
The progress bar says I am 76 mins behind but it does not progress.

Rob Andrews

Quote from: madmurphy on March 26, 2019, 01:47:00 PM
I have downloaded the new version but I seem to be stuck connecting to peers ?
The progress bar says I am 76 mins behind but it does not progress.

Yeah, I had to shut my 3 nodes down because we had a biblepay vendor demand a change in the old code, sigh.

Please hang on...

Rob Andrews

Quote from: madmurphy on March 26, 2019, 01:47:00 PM
I have downloaded the new version but I seem to be stuck connecting to peers ?
The progress bar says I am 76 mins behind but it does not progress.


Ok we are rolling again, Im on 2886.  Lets see if we solve a GSC superblock :).


Rob Andrews

Quote from: Rob Andrews on March 26, 2019, 04:13:15 PM

Ok we are rolling again, Im on 2886.  Lets see if we solve a GSC superblock :).

I just set up the anti-botnet-enforcement flag to enabled, but this will take a few blocks to kick in - so hopefully after that, we won't see anymore hash attacks in testnet, lets see.


oncoapop

Set up a sanctuary but cannot seem to enable watchman. Nonetheless  got a payment of 10286 .

Block 2887

Rob Andrews

Quote from: oncoapop on March 26, 2019, 05:04:34 PM
Set up a sanctuary but cannot seem to enable watchman. Nonetheless  got a payment of 10286 .

Block 2887
Sorry to dissapoint you, but I haven't ported watchman over yet to Evo -- I'm still checking to make sure we need it.  But if your sanc moves to Enabled, at least we can use it in testnet.

On another note, I see we did not emit the superblock at 2890.  We had 2 votes (which is the minimum) but its possible due to the versioning it didn't emit - checking into that now.

(Your 10k block was a regular mined block).  Diff is starting to drop.  I see that each block has ABN weight now (except blocks that were Late IE over an hour old).  Hopefully in a couple more blocks we will be back to normal block spacing.


Rob Andrews

So I finally see why the status bar is appearing to warn us that sancs have newer software than our own software.

There is a new Evo file that needs updated on each release - So whats happening is the "build" is picking up 1.2.0.1 from the first release and converting it to 1020010 which is less than 1040020, so Ill add this to the build process and the next version should be without warnings.


Rob Andrews

I see in 'exec prominence' im the only one with a nickname.  We added the feature in this version to allow you to re-force your CPK with a nick.

'exec cpk nickname true' (true means force).  Note, you have to pick a new nickname if its in use.

Then do the exec prominence again and see if it picks it up.

Prominence is our leaderboard.

(The digit scale is fixed).


Rob Andrews

Ill be going to sleep soon, but the main goal today is to see if we can get GSC superblock 3095 to emit (if blocks speed up this should emit in about 4 hours).


Rob Andrews

Also, someone can test Adding a fake proposal, and once it is in the chain and list, then vote on the proposal.


oncoapop

Quote from: Rob Andrews on March 26, 2019, 08:34:12 PM
I see in 'exec prominence' im the only one with a nickname.  We added the feature in this version to allow you to re-force your CPK with a nick.

'exec cpk nickname true' (true means force).  Note, you have to pick a new nickname if its in use.

Then do the exec prominence again and see if it picks it up.

Prominence is our leaderboard.

(The digit scale is fixed).

I can find my nickname on  cli exec getcampaigns
{
  "campaign DUMMY": "DUMMY",
  "campaign POG": "POG",
  "member [oncoapop]yMjm7qwu2pQ3xRwtxu6qcGrdzdtCTPgcU4": "yMjm7qwu2pQ3xRwtxu6qcGrdzdtCTPgcU4",
  "member []yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "member []yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9": "yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9",
  "member [randrews2]yY8tWKFao1Krn4qkiS7FcQmsHdqATRo48w": "yY8tWKFao1Krn4qkiS7FcQmsHdqATRo48w",
  "member []yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo": "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo",
  "member []ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1": "ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1",
  "member []ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "member [randrews]ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8": "ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8",
  "member []yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "member []yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk": "yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk",
  "campaign-DUMMY-member": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "campaign-DUMMY-member": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "campaign-DUMMY-member": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "campaign-POG-member": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "campaign-POG-member": "yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9",
  "campaign-POG-member": "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo",
  "campaign-POG-member": "ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1",
  "campaign-POG-member": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "campaign-POG-member": "ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8",
  "campaign-POG-member": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "campaign-POG-member": "yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk"

Address appears in campaigns but not in leaderboard

cli exec prominence
{
  "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS [N/A] - 22118.00": 0.17,
  "yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9 [N/A] - 2545762.00": 19.22,
  "yY8tWKFao1Krn4qkiS7FcQmsHdqATRo48w [randrews2] - 7278035.00": 54.94,
  "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo [N/A] - 2373441.00": 17.92,
  "yboD6R7BNsYprPh3VutRYo9miVvNx7qurC [N/A] - 211051.00": 1.59,
  "ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1 [N/A] - 387274.00": 2.92,
  "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW [N/A] - 63873.00": 0.48,
  "yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk [N/A] - 365706.00": 2.76
}

Changing the nickname
cli exec cpk oncoapop
{
  "Command": "cpk",
  "Results": false,
  "Error": "Sorry, NickName is already taken."
}
Good. duplicate names are prevented.

bbpd@testnet:~$ cli exec cpk "onco12&23\45" true
{
  "Command": "cpk",
  "Results": true
}

Let's see how it takes characters in nickname



oncoapop

Quote from: oncoapop on March 26, 2019, 10:07:05 PM
I can find my nickname on  cli exec getcampaigns
{
  "campaign DUMMY": "DUMMY",
  "campaign POG": "POG",
  "member [oncoapop]yMjm7qwu2pQ3xRwtxu6qcGrdzdtCTPgcU4": "yMjm7qwu2pQ3xRwtxu6qcGrdzdtCTPgcU4",
  "member []yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "member []yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9": "yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9",
  "member [randrews2]yY8tWKFao1Krn4qkiS7FcQmsHdqATRo48w": "yY8tWKFao1Krn4qkiS7FcQmsHdqATRo48w",
  "member []yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo": "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo",
  "member []ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1": "ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1",
  "member []ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "member [randrews]ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8": "ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8",
  "member []yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "member []yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk": "yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk",
  "campaign-DUMMY-member": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "campaign-DUMMY-member": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "campaign-DUMMY-member": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "campaign-POG-member": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "campaign-POG-member": "yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9",
  "campaign-POG-member": "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo",
  "campaign-POG-member": "ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1",
  "campaign-POG-member": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "campaign-POG-member": "ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8",
  "campaign-POG-member": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "campaign-POG-member": "yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk"

Address appears in campaigns but not in leaderboard

cli exec prominence
{
  "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS [N/A] - 22118.00": 0.17,
  "yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9 [N/A] - 2545762.00": 19.22,
  "yY8tWKFao1Krn4qkiS7FcQmsHdqATRo48w [randrews2] - 7278035.00": 54.94,
  "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo [N/A] - 2373441.00": 17.92,
  "yboD6R7BNsYprPh3VutRYo9miVvNx7qurC [N/A] - 211051.00": 1.59,
  "ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1 [N/A] - 387274.00": 2.92,
  "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW [N/A] - 63873.00": 0.48,
  "yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk [N/A] - 365706.00": 2.76
}

Changing the nickname
cli exec cpk oncoapop
{
  "Command": "cpk",
  "Results": false,
  "Error": "Sorry, NickName is already taken."
}
Good. duplicate names are prevented.

bbpd@testnet:~$ cli exec cpk "onco12&23\45" true
{
  "Command": "cpk",
  "Results": true
}

Let's see how it takes characters in nickname

Nice work! It appears to strip them out...

cli exec getcampaigns
{
  "campaign DUMMY": "DUMMY",
  "campaign POG": "POG",
  "member [onco122345]yMjm7qwu2pQ3xRwtxu6qcGrdzdtCTPgcU4": "yMjm7qwu2pQ3xRwtxu6qcGrdzdtCTPgcU4",
  "member []yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "member []yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9": "yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9",
  "member [randrews2]yY8tWKFao1Krn4qkiS7FcQmsHdqATRo48w": "yY8tWKFao1Krn4qkiS7FcQmsHdqATRo48w",
  "member []yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo": "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo",
  "member []ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1": "ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1",
  "member []ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "member [randrews]ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8": "ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8",
  "member []yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "member []yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk": "yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk",
  "campaign-DUMMY-member": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "campaign-DUMMY-member": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "campaign-DUMMY-member": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "campaign-POG-member": "yTTkbxTnZuq7ozZk1xLzSsgZMrHmvVVTYS",
  "campaign-POG-member": "yVERuh8wC1nVatoxcCmL7TysDSqoKXk4e9",
  "campaign-POG-member": "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo",
  "campaign-POG-member": "ybp7dgG47SXPou2Lruxu1RRtV5v9ZkuAB1",
  "campaign-POG-member": "ybywyyKM2GaBQchYM72fnVYEk5vVBF9Yvf",
  "campaign-POG-member": "ygNZ6UjvRt6kRShw5X1hwFuv8KaYUJ96Z8",
  "campaign-POG-member": "yiWrpMBA8YXfVmxntAgZZ1dh18ueaBerbW",
  "campaign-POG-member": "yjYjk8edWJLX1Rubu3CtYFJjETJuB65gDk"
}

oncoapop

Quote from: Rob Andrews on March 26, 2019, 09:01:26 PM
Also, someone can test Adding a fake proposal, and once it is in the chain and list, then vote on the proposal.

I tried to add proposal on http://pool.biblepay.org/ on testnet
Used this as the receiving address "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo"
and this is the result
Invalid receiving address. [test]

Is there a way to create a proposal using command line?

Rob Andrews

Quote from: oncoapop on March 27, 2019, 12:17:35 AM
I tried to add proposal on http://pool.biblepay.org/ on testnet
Used this as the receiving address "yYp6yrjpobRTPdqowHTFGpMG8nnEJwYBSo"
and this is the result
Invalid receiving address. [test]

Is there a way to create a proposal using command line?

Hi!  Thanks for testing.

Are you sure you had the receiving address in that field?  I added one from the UI yesterday morning and it went in.  Could you please try again from the UI, and if it doesnt work, give me the amount and the actual URL you used also?

No, currently no way to enter one from the command line.  Just from QT or the Pool.

Also, you do have to wait 6 blocks once you see it enter, so please dont shut the wallet down after you enter it - just keep going back to the add page and reading the bottom status caption.

EDIT:  Ok, I just entered a 2nd one and it worked, you might have had a space in the receiving address or something.  I used this testnet URL as my url.