Barley Test Cases

From BiblePay Wiki
Revision as of 16:44, 2 September 2021 by Admin (talk | contribs)
Jump to: navigation, search

Welcome to BiblePay Q4 2021 - Barley - Test Cases!

Please refer to the testnet thread and its OP Post for other startup information:

https://forum.biblepay.org/index.php?topic=788.new#new



Test Case #1 - Download the Wallet, Install the Wallet, Verify TestNet & Verify Chain is Synced


  • Depending on your OS, download the biblepaycore Wallet:
Windows 64-bit:      https://biblepay.org/biblepaydevelop.exe
Linux 64 bits II (QT/biblepayd/biblepay-cli) zip:  https://biblepay.org/bbp-lin-develop-64.zip
MacOS QT: https://biblepay.org/biblepay-harvest-develop.dmg
Install it in a specific place (not on top of production), for example on windows:  c:\Program files\BiblePayDev 

You can do this by changing the last few characters of the 'Default Installation Location' when you start the wallet. This will let you run biblepay side-by-side your other biblepay production node and not interfere with it.

Launch the wallet the following way to enter testnet:


Option A - Linux:

./biblepaycore -testnet=1 

Option B - Windows:

Go to windows Command Prompt | cd c:\program files\biblepaydev | biblepay-qt -testnet=1 

Option C - Windows:

Look for the BiblePay Develop Shortcut to TestNet in Start | Program Files | All Programs | BiblePayDevelop | TESTNET | Launch the program

Option D - Config File:

Create a configuration file located at "~/.biblepay/biblepaytest.conf" and add the following line in it:
testnet=1
Launch the wallet with "./biblepay -conf=biblepaytest.conf" 


Now that the wallet has launched, lets verify you are in testnet first:

Click Tools | Info | Read "Network":Name | Verify this is TESTNET

Q1. Is your network Name TestNET?


Next, let the wallet sync to the height of 117037+, then check your blockhash.

Go to the RPC Console: Click Tools | Console | Type: getblockhash 117037 The response should be: da2e08e39dcc9e9df42182abb194b393e617cee03974e71cffa9596011b3c817

Q2. Is your hash matching 117037's hash?

Next, lets check the version. From the rpc console, type getnetworkinfo. Read the Build Version.

Q3. The Build version should be 0.17.0.5 or higher. What is your build version?


Verify that you have connections: Click Tools | Info Read "Number of Connections":

Q3. How many connections do you have?


This concludes Test case #1.





Test Case #2 - Send BIBLEPAY back and forth from your wallet to Unchained and back to yourself


  • If you don't have an account at unchained set up, follow this: Navigate to
https://unchained.biblepay.org

When you arrive at the site, it is in MAINNET by default, but we need to be in testnet.

From the left menu, expand Account, and click on My User Record. Click TESTNET.

Now you need a wallet:

Click on the Wallet icon in the upper left corner.

Click Generate New Address.


Copy the 10 seed words to your personal notepad (you can use NOTEPAD in windows for example to paste these in), and keep them for future use in testnet. We may need them.

Click OK.


Now you have an unchained TestNet address, but you still need a nickname in Unchained (this is reqd for Saving Data).


From unchained, click the Left Menu | Expand Account | Click My User Record

Now Populate your Nickname | then Click "SAVE".


Now you can participate in unchained testnet voting, social media, etc IN TESTNET.


  • Now we want to Send biblepay currency from biblepaycore to Unchained.

If you do not have any tBBP in your core wallet (this is TestNet Biblepay), please post something on the forum testnet thread (link is at the top) asking for free tBBP to be sent to you, and paste your receiving address which you can find in "File | Receiving Addresses | Copy one to the clipboard".


Next, lets fund our Unchained wallet.

From BiblePayCore, click Send Money.  Now switch over to Unchained: From Unchained, click the wallet icon, then copy your Unchained receive address to your clipboard.
Paste this address into biblepay core as the SENDING ADDRESS.  Choose an amount, for example 1000 bbp.  Click SEND.


Now we need to wait 1 block for the funds to appear in Unchained.

After 1 block, click around on unchained (IE click a video or anything) and the balance should update.

Q1. Did your transaction successfully flow from BiblePay into Unchained, and were you credited in Unchained the proper amount?


Next, lets send a smaller amount of biblepay back to the core wallet.

From unchained, click the wallet icon. From biblepaycore, copy one of your receiving addresses to the clipboard (you can find these in File | Receiving Addresses).

Paste the address in unchained in the WALLET Send To Address field.

Send a smaller amount back to your core wallet (so that you still have funds in testnet to play around later in future test cases).

Wait 1 block, and verify your BiblePay Core balance has increased (take note of the balance and write it down first etc).


Q2. Did your biblepaycore balance successfully increase, and your unchained balance decrease by the correct amount?





Test Case #3 - Tip a Video

  • From Unchained Testnet, add a video (be sure its an mp4). Be sure to name it with a very unique name so we can find it.
  • Post your video name on the forum along with your nickname so we can tip it and also post your TestNet biblepay balance along with the post so when you receive the tip you can tell us if you got it.
  • Note: The tip takes one full block to pass before you will see it.


Test Case #4 - Add a Portfolio Builder Position

This test case will prove that unchained can handle new PB positions, prove that BiblePay Core will calculate the daily superblock correctly, and dispurse the rewards correctly (to match the leaderboard) and that the end user will receive the daily superblock reward. We also need to review the UTXO leaderboard summary and details. (In future steps we will deal with non-biblepay currency, but lets start with BBP only for this test case).

  • First we need to establish a biblepay-core 'retirement account' (the core wallet does not do this automatically anymore). This will be the BBP address that you can fund multiple times, that will hold the locked UTXO stakes (positions) for the long term, and on these you will earn daily rewards. Step 1: Go to biblepaycore wallet.
Go to File | Receiving Addresses | Create New Address | EDIT | Name the address 'Retirement-Account'.  (You can name it Portfolio builder in prod if you want, etc).
This will allow you to find your retirement-account address in the future when you want to fund it more.
Copy the address to the clipboard.


  • Head to Unchained.biblepay.org. Enter testnet. From the left menu click Demos | Portfolio Builder. From here, this is where you can add a BiblePay (or non-biblepay) portfolio builder position.
Choose BIBLEPAY as the ticker.  Paste your biblepay retirement-account address here.  Note that the PIN will change.  This is your 5 digit receiving pin for BIBLEPAY, for this SPECIFIC ADDRESS.  
Note if you have multiple address book entries, each will have different pins (because the pin is derived by the receive address).
Now remember the pin.  
  • Head back to the biblepaycore wallet. Go to SEND money.
Copy the retirement-account address to your clipboard.  Send TO the retirement-account.  For the amount, choose any amount you want 
(but remember we need to test for 70 days, so don't spend it all, 
spend about 1/20th or so, and you can always ask for more later).  
However, we need to add a SUFFIX on the amount equal to your pin.  
So for example, if you want to send 100K, and your pin is 12345, then you want to send "100000.12345" as the amount.  
Now go ahead and send it (this actually sends the funds to yourself).  

NOTE: In v 0.17.0.7, we DO NOT AUTOMATICALLY LOCK THE STAKES. You have to do this manually for now. Note that in 0.17.0.8, we will auto-lock your stakes! This new version will be released with our next testnet release changes.

  • Head back to UNCHAINED.

Now theoretically, you have a UTXO position on earning a certain amount per day, lets audit it. Click Demos | Portfolio Builder Leaderboard. View the leaderboard, and confirm you have your nickname and the correct quantity of biblepay and earnings.

  • Add to your Portfolio builder position by repeating the above steps and sending more, and verify the Leaderboard | Details contains MORE THAN one entry and the SUMMARY contains the correct SUM of biblepay.

Q1. Verify the portfolio builder position was recognized in the leaderboard?

Q2. Verify more than one PB position correctly adds in Summary and Details show each detail?

Q3. Wait 24 hours, and look for the next superblock (you can get the height by typing getgovernanceinfo). Verify that you received the correct daily reward?