Bible Pay

Read 3017 times

  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #150 on: May 04, 2021, 07:53:09 AM »
* TestNet Update *

Normally by now, I would have been checking in and asking for a status update from everyone on our test cases but this particular week has been very busy with new development for biblepay.

The good news is, I have more code to release that we can test directly related to the harvest release.

I was specifically going to follow up on referral codes and high risk staking cases etc, but actually the code has a couple new enhancements that make it easier to use so at this point the best of course of action is waiting until we have our next release, then we can do all that at the same time on the new version.

So please be patient and hang in there.  I think we will have a release within the next 2 days.

Praise the Lord!



  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #151 on: May 04, 2021, 07:02:06 PM »
1.6.1.4 - Mandatory Upgrade for Testnet

- Add DSQL to server side (this supports an insert and a read).  Add instantsend DSQL inserts and reads.
- Make referralcode calculation easier to understand
- Add rest pushtx, getaddressutxo.   This allows a decentralized client to relay a tx, and allows a decentralized c# consumer to query utxos, and query DSQL data.

** I will be adding more test cases asap for this and referrals and highrisk utxo stakes, etc.

*** Please upgrade first.  Note that this new version requires all of our nodes to run the new addressindex, meaning you will have to reindex your node when you start it with -erasechain=1.  Note that if you dont, the code will force you to start with -reindex=1, but that code still has a long standing bug that crashes.  So please do the erasechain=1 when you upgrade to this version.

**** Please verify your versioon does say 1.6.1.4+ before testing as usual!
« Last Edit: May 05, 2021, 08:52:16 AM by Rob Andrews »


  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #152 on: May 04, 2021, 07:23:23 PM »
QUESTION:

Do any of you have experience in running a Microsoft ASPX based web server and experience in SQL and/or c# programming?  The reason I ask is we are developing a new technology, called the 'biblepay DLL' that allows c# IT organizations (and developers) run a web server that hosts decentralized pages driven by DSQL queries.  Whoever is interested in testing this, I would like to make a wiki to explain how to install it and program it.



  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #153 on: May 04, 2021, 08:54:16 PM »
New Test Cases:

- We do have the "CSV import" now available for greeting cards, but please skip by this one until I make a wiki page to document the import format.
- High Risk BBP Stake:
(This allows the user to earn a higher DWU%, but must keep the coins locked for the entire duration otherwise they pay a penalty.
Try this:
highriskbbpstake 500000 60 1
Where 500000 is the amount of bible pay staked, and 60 is the amount of days you want to commit to, and 1 is "for real".  Note, TestNet time is 24* faster than prod, so 60 days is OK in testnet as you dont have to worry about waiting an agonizing amount of time for it to be free.
After this, we need to look in coin control to make sure the icons are correct. 
To understand the icons more, please see this Post here, read about the 3 types of icons in coin control:
https://forum.biblepay.org/index.php?topic=762.msg10733#msg10733



And we also need to test the penalty if we try to spend one early.  Please wait til you see the stake in the leaderboard before trying to spend it early.  Then post the amount of the penalty and the amount of the utxo so we can verify the figure.
Verify the command line options are in the correct order now also.

Remember once you do stake a UTXO, after a block or two, you can go into the Leaderboard and see your position, and double click on it.  You can also type 'leaderboard' from the RPC and see everyones position.  Also, please type 'listutxostakes 0 0' just to see the new rpc format for stakes!


- Regular UTXO stake:
easybbpstake 500000 1
This is the classic bbp stake that is already working in prod.

- Attach a portfolio code to your portfolio.  This lets you earn up to 10% more per year if you are able to find 10* the amount of portfolio code "size" than your own portfolio.  For example if you have a 1MM portfolio, and you attach 10MM of codes, you should earn 10% (in a diminishing rate at the decay factor per day).
I will attach a code for you guys now from my testnet portfolio which has 130MM bbp in it:
2a21d83da8a12a078790e763c383dadbb42785916ae5356cdba1f648c73340b4

To attach it do this:
attachreferralcode code

Then after a couple blocks type:
listattachedreferralcodes

And look in the leaderboard, double click on your name and verify the code has a "Referral Rewards" modifier.  This is the factor that your DWU is modified by (in boost).  For example if you have a 50% DWU, and a 1.10 modifier, you will end up with .50*1.1 = .55%  DWU for example.
Note that you also receive a two-way reward when Others attach *your* code.  So please also do a 'generatereferralcode' and paste one of yours here and I will attach yours to my portfolio.


Note that in order to do these tests, you should have a nickname set up in "Edit user record" - be sure your nickname is populated and the record is saved in the chain.

Good luck,
Rob

EDIT:
Outstanding item for Earlz:
https://forum.biblepay.org/index.php?topic=762.msg10748#msg10748
On the bottom of the message please see the part about "gift icon", could you please see if the icon works in Coin Control and that the gift is locked by default also.


« Last Edit: May 04, 2021, 08:59:45 PM by Rob Andrews »


  • earlzmoade
  • Developer

    • 236


    • 38
    • August 02, 2018, 03:22:01 AM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #154 on: May 05, 2021, 09:59:45 AM »
Hello Rob.

I have been busy at work now so i havent been able to do much testing, last time i tried to liquidate a locked stake  it did not work for me, but i will retry this new verison you put out and ofcourse
I see you updated with new testcases.

Quote
QUESTION:

Do any of you have experience in running a Microsoft ASPX based web server and experience in SQL and/or c# programming?  The reason I ask is we are developing a new technology, called the 'biblepay DLL' that allows c# IT organizations (and developers) run a web server that hosts decentralized pages driven by DSQL queries.  Whoever is interested in testing this, I would like to make a wiki to explain how to install it and program it.

Sadly i have no experience of such things.

In the coming days i will do some more testing, exciting times Rob!
Have a good one Brother.
Joshua 1:9
Have i not commanded you?
Be strong and courageous. Do not be afraid;
do not be discouraged, for the Lord your God
will be with you wherever you go.


  • Pat Buckley
  • Jr. Member

    • 44


    • 8
    • February 22, 2021, 02:15:12 PM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #155 on: May 05, 2021, 10:40:11 AM »
Rob,

Been testing.....


easybbpstake 500000 1


{
  "BBP UTXO": "fd75d49ae8ab46da5b46898ea40bb151e61de9877d678e483923f5034a301aab-1",
  "BBP Address": "yY1Hezdh5uCYvzo6CaZY5zYqfgqzdf4S6w",
  "BBP Amount": 4999997.37,
  "Commitment Days": 0,
  "DWU": 176.2560024744264,
  "BBP Value USD": 3072.426871716365,
  "Error (Not Sent)": "Insufficient funds.Unable to Create Transaction. NOTE: In this version, you must have an extra unspent coin between 1bbp-9999bbp to pay for the UTXO stake lock (in addition to the UTXO itself).  So please type 'exec bankroll 5 10' and this will create 5 coins worth 10 bbp for you, then try the stake again after those coins are 1 deep.  Thank you for being with BIBLEPAY.  "
}


exec bankroll 5 10


{
  "Command": "bankroll",
  "Error": "Command not found"
}


  • Pat Buckley
  • Jr. Member

    • 44


    • 8
    • February 22, 2021, 02:15:12 PM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #156 on: May 05, 2021, 11:34:02 AM »

09:33:03
easybbpstake 500000 60 1


09:33:03
Commitment days must be between 31 and 365 if specified.  (code -1)


  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #157 on: May 05, 2021, 12:35:02 PM »
09:33:03
easybbpstake 500000 60 1


09:33:03
Commitment days must be between 31 and 365 if specified.  (code -1)
Hi Pat,

With 'easybbpstake' we do not want the user to specify the commitment duration (that is just for highriskbbpstake).

So this is expected.  (See easybbpstake is for a normal, conservative stake with no penalty.  High risk stake gives the higher reward, but also a penalty if you unlock early).


Note that you can also get help with any rpc command like this:
help easybbpstake

This lists the parameters available for the command too.



  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #158 on: May 05, 2021, 12:38:21 PM »
Rob,

Been testing.....


easybbpstake 500000 1


{
  "BBP UTXO": "fd75d49ae8ab46da5b46898ea40bb151e61de9877d678e483923f5034a301aab-1",
  "BBP Address": "yY1Hezdh5uCYvzo6CaZY5zYqfgqzdf4S6w",
  "BBP Amount": 4999997.37,
  "Commitment Days": 0,
  "DWU": 176.2560024744264,
  "BBP Value USD": 3072.426871716365,
  "Error (Not Sent)": "Insufficient funds.Unable to Create Transaction. NOTE: In this version, you must have an extra unspent coin between 1bbp-9999bbp to pay for the UTXO stake lock (in addition to the UTXO itself).  So please type 'exec bankroll 5 10' and this will create 5 coins worth 10 bbp for you, then try the stake again after those coins are 1 deep.  Thank you for being with BIBLEPAY.  "
}


exec bankroll 5 10


{
  "Command": "bankroll",
  "Error": "Command not found"
}

Hi Pat,

Good testing.

So yes, we do require one extra coin in the wallet (of a small value) for these stakes to work, and Im glad you were able to see the extra instructions we printed this time (that keeps users from getting hung up!).

Anyway, I want to mention, I recently made 'exec bankroll' into a new dedicated command called bankroll.

So please change the blurb above to pretend that it said this:
Code: [Select]
bankroll 5 10

Another words, we took out the word 'exec'.

Please try again.

Also, I did just change the code to reflect this change and it will be in the next release!

Thanks.

Rob


  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #159 on: May 05, 2021, 12:42:31 PM »
Hello Rob.

I have been busy at work now so i havent been able to do much testing, last time i tried to liquidate a locked stake  it did not work for me, but i will retry this new verison you put out and ofcourse
I see you updated with new testcases.

Sadly i have no experience of such things.

In the coming days i will do some more testing, exciting times Rob!
Have a good one Brother.

Hi Earlz, good to see you brother.
No problem, luckily this particular test round we have til the end of June, so we are doing fine this time.

But wait I remember when you tried to liquidate your high risk utxo you did reply that you had a nice big fat penalty on the screen and it did not allow you to send it, as expected.  So I thought that was a Success.

But know this too:  In testnet, our utxo penalty duration is set deliberately at 24* faster.  So by now, Im sure your high risk stake is unlocked.

You will probably have to do a new test and keep a close eye on the status.  IE look at it, make sure its unspendable, watch it the next day, unspendable.  Listutxostakes, it will give you the age on the row of the transaction, and then when its mature it will be unlocked etc.

Im most certainly concerned that we enforce the penalty on high risk stakes.  And of course when they expire that you can spend them without the penalty.

Thanks!




  • Pat Buckley
  • Jr. Member

    • 44


    • 8
    • February 22, 2021, 02:15:12 PM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #160 on: May 05, 2021, 03:37:33 PM »

Test failed for Easycode...

easybbpstake 500000 1

"BBP UTXO": "2638b8c7834973da8c02f1a5f9dcba0ca8d97f2fcd33e336e72c21fa9630bb4b-15",
  "BBP Address": "yiCj8EmdEGQZZRG53LqEhkoT8uf3JiSAs4",
  "BBP Amount": 4999848.5005,
  "Commitment Days": 0,
  "DWU": 157.8523393457695,
  "BBP Value USD": 3243.393680164033,
  "BBP Signing Error": "CANT-FIND-UTXO"


  • Pat Buckley
  • Jr. Member

    • 44


    • 8
    • February 22, 2021, 02:15:12 PM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #161 on: May 05, 2021, 03:38:54 PM »
Bankroll...

13:28:03
bankroll 5 10

13:28:03
{
  "TXID": "2638b8c7834973da8c02f1a5f9dcba0ca8d97f2fcd33e336e72c21fa9630bb4b"
}


  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #162 on: May 05, 2021, 03:58:30 PM »
Test failed for Easycode...

easybbpstake 500000 1

"BBP UTXO": "2638b8c7834973da8c02f1a5f9dcba0ca8d97f2fcd33e336e72c21fa9630bb4b-15",
  "BBP Address": "yiCj8EmdEGQZZRG53LqEhkoT8uf3JiSAs4",
  "BBP Amount": 4999848.5005,
  "Commitment Days": 0,
  "DWU": 157.8523393457695,
  "BBP Value USD": 3243.393680164033,
  "BBP Signing Error": "CANT-FIND-UTXO"

Hi Pat!

Could you please attach a screenshot of your coins from "coin control" (Send Money | Inputs)?  Then I can tell you why it cant find one.  Could be that you had to do it after your 'bankroll' command.  The wallet needs a coin that is above 500K, and one coin that is between 1-10K in the wallet for the above easystake to work.

OR alternatively try this:

Btw, if you only have 1 coin for 5mil, you would need to do something like this first:
bankroll 5 260000
That would give you 5 coins worth 260K each in your wallet.

Then do:
easystake 250000 1

That should take care of the problem.

Always wait 1 block after the bankroll command to make sure its in the chain too.




Thanks!

EDIT:

I see the problem Pat -- see up in the output where it says your coin that it found is 4.999M?  That means at the time you ran the command you only have one coin in your wallet (and no change).
For testnet its not really a good idea to stake your last coin (the biggie)  on only one easybbpstake, because then you wont have any money to do the other tests (for example a few high risk stakes etc).
So yeah you will need to do the 'exec bankroll 5 260000' for example to get 5 coins worth 260K, giving you the ability to stake 5 times before you run into new troubles.


« Last Edit: May 05, 2021, 04:03:45 PM by Rob Andrews »


  • Rob Andrews
  • Administrator

    • 3353


    • 77
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #163 on: May 05, 2021, 05:21:30 PM »
*** Unchained Beta is being released into TESTNET ***

https://unchained.biblepay.org/

So this is unchained beta.  It is a conglomeration of new features that we are slowly rolling out including:

  • DSQL inserts, updates, deletes, views
  • The biblepay DLL
  • The paradigm of owning a biblepay widget server (That would be a good coin name, not for us but for someone.. paradigm).  Or the paradigm of being a BiblePay c# contributor, etc.
  • The continuity between Unchained and the Chrome plugin thread.  Basically Unchained is the framework to host a web server with BiblePay DLL.  The Chrome plugin testing page includes spending money in the pet shop, buying NFTs, the pay per view tests etc.  I can see Unchained needing to use the PPV interface soon to be able to demo those pages right within a widget!
  • How the widgets will look etc.


But for now I was thinking we can start with actually testing the DSQL technology as  users.  So what I have here, is a brand new instance of a web server (its a new ASPX web server instance running on IIS7 inside the foundation web server), and its consuming our brand new BIBLEPAY.DLL, which is pointed to testnet!  Then in my conf file on the server, I have my testnet privkey pair (which is not shared with anyone of course) and that pair pays the tx fees as people click around.

So please go ahead and make some new Prayer Inserts and some Prayer comments and lets see how this baby performs!



  • Pat Buckley
  • Jr. Member

    • 44


    • 8
    • February 22, 2021, 02:15:12 PM
    more
Re: June 2021 Release - Harvest - TestNet Thread
« Reply #164 on: May 06, 2021, 10:57:27 AM »
More Testing...


18:51:01
{
  "BBP UTXO": "e5a2ad5bef05d5dbecc5ff36e3b23501052efffa4a3decf3694e8a82b5a1fc4b-14",
  "BBP Address": "ycKPchewtgyyHTNdEJiRwo64KJvUBtY3Xu",
  "BBP Amount": 260000.001,
  "Commitment Days": 0,
  "DWU": 157.8566658710841,
  "BBP Value USD": 174.5805398015776,
  "UTXO Value": 174.580539130114,
  "Results": "The UTXO Stake Contract was created successfully.  Thank you for using BIBLEPAY. ",
  "TXID": "09bf76f1a14c79f0444604a17930b77c8363ca180afea9838deaeb365879078e"
}


08:46:50
attachreferralcode 2a21d83da8a12a078790e763c383dadbb42785916ae5356cdba1f648c73340b4


08:46:51
{
  "Attached": "169bec0ace62aec7eb57a792f82bd1dc1d4cf6af9e0e178c7460ab23e9c33d0b"
}


08:49:21
listattachedreferralcodes


08:49:21
{
  "Details": {
    "Referral BBP Claimed": 0,
    "Referral BBP Earned": 0,
    "Total BBP in Portfolio affected": 0,
    "Portfolio % affected by rewards": 0,
    "Referral Code Effectivity %": 9.956000000000001,
    "Total Portfolio DWU Impact %": 100
  },
  "Portfolio Rewards Modifier": 1
}