Bible Pay

TestNet => Active Discussions => Topic started by: Rob Andrews on April 13, 2022, 01:12:19 PM

Title: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 13, 2022, 01:12:19 PM
June 2022 Release - Exodus



Welcome to TestNet - Exodus!



Testing commences: April 1st, 2022
Testing Ends: June 2022



In this thread we will be testing:

- Dash 0.17.2.2+ changes:

- POVS (proof-of-video-streaming)

- Verify emissions for core subsidy, daily governance, and monthly governance

- Time Locked Trusts

- View sanctuary streamed video(s) from user perspective and sanc operator perspective

- BBP Drive




Explain Changes to Entire BiblePay Network:   

- Explain transition from POOS to POVS

- Explain usage instructions from customer and user perspective




Wiki Articles:

Time Locked Trusts:
https://wiki.biblepay.org/Time_Locked_Trust

Create a Sanc:
https://wiki.biblepay.org/Create_Sanctuary

BBP Drive:
https://wiki.biblepay.org/BBP_Drive

Installing BMS:
https://wiki.biblepay.org/Install_BMS





Starting Version:    0.17.2.2:

(Please ensure your version is greater than this, in order to sync.  See post #2 for current hash.


Testnet Download Links:


Ready:
     Windows 64-bit:      https://biblepay.org/biblepaydevelop-1.exe
     Linux 64 bits II (QT/biblepayd/biblepay-cli) zip:  https://biblepay.org/bbp-lin-develop-64.zip
     (not ready - inquire first) MacOS QT: https://biblepay.org/biblepay-harvest-develop.dmg


To self compile:
git pull origin develop

https://github.com/biblepay/biblepay/blob/develop/BuildBiblePayDevelop.txt


TODO during release:
Move Mobile Endpoint for mobile wallet unchained:
From foundation.biblepay.org to         https://unchained.biblepay.org/BMS/MobileAPI







CONFIGURING FOR TESTNET:


Create a biblepaytest.conf file with the following contents:
testnet=1
(optional:  debug=1)

Place the file in ~/.biblepay



Start testnet by typing:
./biblepay-qt -conf=biblepaytest.conf

(Note the blocks and chainstate will sync into the ./biblepay/testnet3 folder.

NOTE: If you only have one machine, you can run in testnet side by side a prod node.

To create a TestNet Sanctuary:

https://wiki.biblepay.org/Create_Sanctuary

__________________________________________________________________________________________________________________________________________________________________________________________



                                                                   OUR BIBLEPAY CORE TESTERS



#1 - Earlz 

#2 - Pat Buckley

#3 - Rob Andrews

#4 -









Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 13, 2022, 07:01:11 PM
Welcome back everyone (our original thread was destroyed).

Good block hash:
18:59:12
getblockhash 142700
18:59:12
539f1b8c495a568e4dcb69ae817679e4b5f53e4ef2ccba78f030543fe5ae6316


So far we had Earlz test TLT, and he tested a maturity date ending in the past successfully.  I tested one past (and was able to spend) and one future (and was not to spend).
Then we added an error message preventing a user from spending early (so they dont get stuck with needing to do zapwallettxes=1).


One thing you guys can jump on testing:  You can test BBP drive.  That's documented in the wiki in the OP post.




Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on April 15, 2022, 04:24:39 AM
Mornin!

Quote
One thing you guys can jump on testing:  You can test BBP drive.  That's documented in the wiki in the OP post.

Hey Rob could you update the BBP drive wiki when time , its still not restored.

Thanks.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 15, 2022, 08:36:58 AM
Mornin!

Hey Rob could you update the BBP drive wiki when time , its still not restored.

Thanks.

Sure, I apparently saved it with an underscore this time.  I just updated the OP post.  Thanks.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 17, 2022, 08:42:41 PM
Test case for MainNet subsidies:

Boot up into mainnet using exodus, verify chain is synced: PASS
Verify the daily block reward (nextdailylimit) using getgovernanceinfo has increased to ~325K (for UTXO staking rewards): PASS
Verify the block subsidy for RX miners and Sancs has increased to approx 4400: PASS
Verify the monthly governance budget has increased to 10% of block emission for orphan charity (it was approx 4MM and the total was about 6.75MM including non charity expenses) : PASS

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 17, 2022, 08:46:12 PM
Test Case for TLT (Time locked Trust):

Download time locked trust and install it.
Verify the user can create a mainnet or testnet TLT keypair by generating a trust: PASS
Save the trust to a file and read the trust in notepad - does it look correct? : PASS
Generate one TLT trust in the past (March 2022), and one in the future (May 2022) for testnet : PASS
Boot biblepaycore and import the keys (importprivkey privkey) for each of the TLTs: PASS
Edit the names of the keys (I named one March-2022-TLT and another May-2022-TLT)
Now fund each wallet with 5K
Now try to spend from the March 2022 wallet : PASS (I was able to spend it)
Now try to spend from the May 2022 wallet: PASS (I was NOT able to spend it)
In unit test, verify the new error appears preventing the spend : PASS

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 17, 2022, 08:51:05 PM
Test case for BBP Drive:

Navigate to BBP Drive github from op post.
Install Dokan driver on windows box: PASS
Install BBP drive using the MSI: PASS
Launch "BBP Drive" from Start | Applications | BBPDrive
When BBP Drive boots it asks for API key.
Enter the API key you obtain from the wiki instructions:  PASS
Once BBP drive is running, verify we have an N: drive in windows : PASS
Drop 10 files on the N: drive in root folder and some in the subfolder : PASS
Launch some of the files in windows, verify they load normally (tested images by double clicking them, tested one video, tested some notepad files) : PASS
Edit a file and re-save it , verify the contents have changed : PASS
Rename a file, verify it renames : PASS
Delete a file, verify it deletes : PASS
Try loading one of your files from the external URL:
According to my bbpdrive when it launched my storage area is :
https://globalcdn.biblepay.org:8443/video/96/
The file I stored is in subfolder mypath.  The file name is "bbphoriz.png". 
So navigate to URL:
https://globalcdn.biblepay.org:8443/video/96/mypath/bbphoriz.png
Verify the image is visible on the internet:  PASS

Image hosted on bbpdrive (pasting bbp drive URL into our forum image tag):

(https://globalcdn.biblepay.org:8443/video/96/mypath/bbphoriz.png)
Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on April 18, 2022, 04:56:31 PM
Evenin.

I have also done some testing on this  BBP drive.

https://wiki.biblepay.org/BBP_Drive (https://wiki.biblepay.org/BBP_Drive)

Quote
Test case for BBP Drive:

Navigate to BBP Drive github from op post.
Install Dokan driver on windows box: PASS
Install BBP drive using the MSI: PASS
Launch "BBP Drive" from Start | Applications | BBPDrive
When BBP Drive boots it asks for API key.
Enter the API key you obtain from the wiki instructions:  PASS
Once BBP drive is running, verify we have an N: drive in windows : PASS
Drop 10 files on the N: drive in root folder and some in the subfolder : PASS
Launch some of the files in windows, verify they load normally (tested images by double clicking them, tested one video, tested some notepad files) : PASS
Edit a file and re-save it , verify the contents have changed : PASS
Rename a file, verify it renames : PASS
Delete a file, verify it deletes : PASS
Try loading one of your files from the external URL:

The installation process went smooth overall. There was that thing about the .conf file but Rob fixed that.   

Navigate to BBP Drive github from op post.
Install Dokan driver on windows box: pass
Install BBP drive using the MSI:  pass
Launch "BBP Drive" from Start | Applications | BBPDrive
When BBP Drive boots it asks for API key.
Enter the API key you obtain from the wiki instructions:  pass
Once BBP drive is running, verify we have an N: drive in windows : pass
Rename a file, verify it renames : pass
renamed a picture, np there.
Edit a file and re-save it , verify the contents have changed : pass
changed a text document,  it checked out.
Delete a file, verify it deletes : Does not seemed that it deleted yet.

I deleted the picture from the N drive but still i can see it in the web browser.

Try loading one of your files from the external URL:
It works, for example some of my pictures:  https://bbpipfs.s3.filebase.com/video/45/timber12.gif (https://bbpipfs.s3.filebase.com/video/45/timber12.gif) , https://bbpipfs.s3.filebase.com/video/45/APPstyleLcabin.png (https://bbpipfs.s3.filebase.com/video/45/APPstyleLcabin.png)

Overall i think nice feature.

When minimizing the BBPdrive.exe i would have liked if it could go to the hidden icons section on windows 10  where  your speakers , windows security , network etc are.  Also like a harddrive bbp icon would be sweet.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 18, 2022, 06:48:40 PM
Evenin.

I have also done some testing on this  BBP drive.

https://wiki.biblepay.org/BBP_Drive (https://wiki.biblepay.org/BBP_Drive)

The installation process went smooth overall. There was that thing about the .conf file but Rob fixed that.   

Navigate to BBP Drive github from op post.
Install Dokan driver on windows box: pass
Install BBP drive using the MSI:  pass
Launch "BBP Drive" from Start | Applications | BBPDrive
When BBP Drive boots it asks for API key.
Enter the API key you obtain from the wiki instructions:  pass
Once BBP drive is running, verify we have an N: drive in windows : pass
Rename a file, verify it renames : pass
renamed a picture, np there.
Edit a file and re-save it , verify the contents have changed : pass
changed a text document,  it checked out.
Delete a file, verify it deletes : Does not seemed that it deleted yet.

I deleted the picture from the N drive but still i can see it in the web browser.

Try loading one of your files from the external URL:
It works, for example some of my pictures:  https://bbpipfs.s3.filebase.com/video/45/timber12.gif (https://bbpipfs.s3.filebase.com/video/45/timber12.gif) , https://bbpipfs.s3.filebase.com/video/45/APPstyleLcabin.png (https://bbpipfs.s3.filebase.com/video/45/APPstyleLcabin.png)

Overall i think nice feature.

When minimizing the BBPdrive.exe i would have liked if it could go to the hidden icons section on windows 10  where  your speakers , windows security , network etc are.  Also like a harddrive bbp icon would be sweet.

Great testing man.  I really like the APPstyleLcabin, that things is beautiful.

So on the deleted file, this actually might be OK if it still on the internet.  This is because our CDN gives you a 'globalcdn.biblepay' link at first and that is the direct URL to the sanctuary.  (But we back up files into our IPFS provider just in case) and I will show you how to check if its really deleted once you get BMS up and running and we do a Video test, I can show you how to go that dir and see if its deleted.

Anyway you can also check like this:  If you restart BBP drive and leave it on for at least 60 seconds, if that file stays deleted, then its really deleted and this web instance is just an IPFS backup.

I like your two suggestions and frankly I would like to do those but if we get more interest in using the program cause of course theres a long list of things to do with our youtube feature (like adding AI to it for example), but yes those are definitely needed.    I added a github issue for you for this:
https://github.com/biblepay/BBPDrive/issues/1

Note that anyone can add these feature request to each github if they want.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on April 22, 2022, 07:11:47 AM
Hello Brother Rob.

Finally i have got the testnet Sanctuary and BMS up and running on the 20.04 node.
It was easy enough following the guides https://wiki.biblepay.org/Create_Sanctuary (https://wiki.biblepay.org/Create_Sanctuary) and https://wiki.biblepay.org/Install_BMS (https://wiki.biblepay.org/Install_BMS)
I also threw an eye at the  https://docs.dash.org/en/stable/masternodes/setup.html (https://docs.dash.org/en/stable/masternodes/setup.html)

As for compiling the core wallet https://github.com/biblepay/biblepay/blob/develop/BuildBiblePayDevelop.txt (https://github.com/biblepay/biblepay/blob/develop/BuildBiblePayDevelop.txt) it was just copy paste on this VPS no issues there.

I ran the
Code: [Select]
masternode status and
Code: [Select]
mnsync status  and i got
Code: [Select]
"state": "READY",
  "status": "Ready"
and
"IsBlockchainSynced": true,
  "IsSynced": true
 

Quote
Good block hash:
18:59:12
getblockhash 142700
18:59:12
539f1b8c495a568e4dcb69ae817679e4b5f53e4ef2ccba78f030543fe5ae6316
so i ran the getblockhash comand

Code: [Select]
getblockhash 142700
539f1b8c495a568e4dcb69ae817679e4b5f53e4ef2ccba78f030543fe5ae6316

That looks fine.

After that i installed the BMS , went fine and after posting bms adress in the browser i got :

Code: [Select]
1029|0|v1.2|Status: OK
|https://185.182.186.162:8443|Synced_Count: 101, File_Count: 131838, Synced: 0.0007660916605158102
<EOF>

The only thing that i had abit trouble with was the biblepay-cli but that seems fixed aswell.   


Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 22, 2022, 07:40:03 AM
Hello Brother Rob.

Finally i have got the testnet Sanctuary and BMS up and running on the 20.04 node.
It was easy enough following the guides https://wiki.biblepay.org/Create_Sanctuary (https://wiki.biblepay.org/Create_Sanctuary) and https://wiki.biblepay.org/Install_BMS (https://wiki.biblepay.org/Install_BMS)
I also threw an eye at the  https://docs.dash.org/en/stable/masternodes/setup.html (https://docs.dash.org/en/stable/masternodes/setup.html)

As for compiling the core wallet https://github.com/biblepay/biblepay/blob/develop/BuildBiblePayDevelop.txt (https://github.com/biblepay/biblepay/blob/develop/BuildBiblePayDevelop.txt) it was just copy paste on this VPS no issues there.

I ran the
Code: [Select]
masternode status and
Code: [Select]
mnsync status  and i got
Code: [Select]
"state": "READY",
  "status": "Ready"
and
"IsBlockchainSynced": true,
  "IsSynced": true
 
so i ran the getblockhash comand

Code: [Select]
getblockhash 142700
539f1b8c495a568e4dcb69ae817679e4b5f53e4ef2ccba78f030543fe5ae6316

That looks fine.

After that i installed the BMS , went fine and after posting bms adress in the browser i got :

Code: [Select]
1029|0|v1.2|Status: OK
|https://185.182.186.162:8443|Synced_Count: 101, File_Count: 131838, Synced: 0.0007660916605158102
<EOF>

The only thing that i had abit trouble with was the biblepay-cli but that seems fixed aswell.

Hi Bro. Earlz, I hope you are blessed.
This looks really good, now we can make some real progress.

On the dash guide @ https://docs.dash.org/en/stable/masternodes/setup.htm, is there anything that we need to add to Create Sanctuary wiki page because its muddy?  Cause on one hand, getting the doc destroyed forced me to create a more succinct doc (which is good I think) but otoh its more for power users.  Ill be glad to add something if there was uncertainty somewhere.

Im very excited that you have both the sanc running and BMS is syncing now.  It should be synced within an hour or so.

In the mean time, I want to make you aware that we have a wilcard CDN SSL cert that we bought and deployed with BMS (its integrated with the program) and what this does is allows us to issue any hostname while the CDN is running and respond to the user without ssl errors.  So for example, your sanc is internally known as this DNS address to the other sancs:

https://sanc185182186162.cdn.biblepay.org:8443/BMS/Status

See if you open that in a browser, you won't get any SSL error because of the wildcard.  Anyway, the reason I mention this is I'm going to give you some pages you can hit from your browser that let you see Sanc videos directly from your sanc (proving that its working).  Its also possible to upload an s3 file directly into your sanc and get it onto the biblepay network by using the biblepay API.  https://wiki.biblepay.org/API

So let me get some of this info together for you once this sanc is almost synced, lll be back asap.




Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on April 22, 2022, 02:32:41 PM
Evenin.

Quote
On the dash guide @ https://docs.dash.org/en/stable/masternodes/setup.htm, is there anything that we need to add to Create Sanctuary wiki page because its muddy?

Not at all. My problem was the biblepay-cli, i received some error "cannot connect to 127.0.0.1 make sure biblepayd is running" something like that so i added the RPC arguments in the config file.
Code: [Select]
#----
rpcuser=XXXXXXXXXXXXX
rpcpassword=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
#----
#masternodeblsprivkey=
externalip=XXX.XXX.XXX.XXX
#----

I dont know if the masternodeblsprivkey=xxxxx + testnet=1 should be enough but for some reason i dont get the cli to respond without the rpc commands.

For sure looking forward for some test cases  :D ;D
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 22, 2022, 02:41:17 PM
Evenin.

Not at all. My problem was the biblepay-cli, i received some error "cannot connect to 127.0.0.1 make sure biblepayd is running" something like that so i added the RPC arguments in the config file.
Code: [Select]
#----
rpcuser=XXXXXXXXXXXXX
rpcpassword=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
#----
#masternodeblsprivkey=
externalip=XXX.XXX.XXX.XXX
#----

I dont know if the masternodeblsprivkey=xxxxx + testnet=1 should be enough but for some reason i dont get the cli to respond without the rpc commands.

For sure looking forward for some test cases  :D ;D

Whew good, Im glad our wiki is OK for now praise God.  I think I know the problem with biblepay-cli.  When you run it simply as ./biblepay-cli command,  It tries to look to your "biblepay.conf" file for credentials to connect to biblepayd.
All you have to do is specify where your config is.  If for example your testnet conf is called "biblepaytest.conf" then do like this:

./biblepay-cli -conf=biblepaytest.conf getmininginfo
(This assumes of course that biblepaytest is in the ~/.biblepay directory, thats where I usually have it on non prod sancs. )

Yeah, let me look at these test cases next.

I'm going to start sharing some commands to query videos too.

PS
Your conf file is fine, but note that a lot of that is no longer necessary (I think each of those things had value in the past).
You can try putting a pound sign in front of everything except:
masternodeblsprivkey=
and
testnet=1


Using externalip is usually overkill.  I used to put that in because 'masternode status' showed some crazy result, but I found out later it always resolved itself after 20 hours lol.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 22, 2022, 03:07:57 PM
Here is a little tiny test case that shows which nodes Your sanc knows about (this is so it knows how to reach out and refer video streamers to another sanc, if your sanc if missing a piece for example).  It also comes into play with our VIDEO-POSE (where sanc operators dont get paid if they run inferior nodes, ie low proc count and low hard drive size):

https://sanc185182186162.cdn.biblepay.org:8443/BMS/Nodes

If you run that command from a browser you should see everyone that your node connected to.
Note that the 64 processor machine is my home desktop but its not always on, so it would be a prime example of one getting POSE banned.
And I see your new node has 6 procs, way to go man.

We will also have other VIDEO-POSE rules (like hashes per sec) so that people cant cheat this etc.  I think when the sidechain is released we can also test that a node is fully synced too.  (For now however we do ensure the node can do 1MM HPS, that the hard drive is 399gb or greater and 6 proc count) so that this is very fair...

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 22, 2022, 03:20:27 PM
Test case to ensure an individual sanctuary can play a video directly from the sanc:

This is a nice feature even though it would be a long shot to actually use it, this allows you to play a Sanc video directly from the sanc into the browser (no CDN required).  So if your videos are synced, and you have a connection to the sanc, and the rest of the world is down, the video will still play.

URL:

https://sanc185182186162.cdn.biblepay.org:8443/BMS/PlayVideos

Note that this video list will grow as your sanc syncs to 100%.  We only have about 300 videos right now being stored (these videos are the ones uploaded into social.biblepay.org into the video room, that is what we are hosting). 

So to perform the test just click on one of the videos, and notice the sanc will generate a local url (a url playable directly from the sanc), then skip around in the video and ensure it plays.


And so how does this actually work for users?
The way it works for users is when the user hits our global CDN (thats our load balancer), this load balancer pushes the traffic out to one of our 'fully qualified bms nodes' (they get fully qualified when their reverse dns record is established and they are synced), and when that video request starts, it is only for seconds 1-5 of the video.  Each 5 seconds are re-evalutaed and the video is streamed from whichever node has the piece.  So a 20 min video might have 200 pieces, and each 5 sec piece is streamed independently from a different sanc (it is not designed for one sanc to stream an entire video but rather each piece is evaluated as the video is played, and pulled from the sanc that has it).

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on April 22, 2022, 03:46:45 PM
Hey.

Quote
All you have to do is specify where your config is.  If for example your testnet conf is called "biblepaytest.conf" then do like this:

./biblepay-cli -conf=biblepaytest.conf getmininginfo
(This assumes of course that biblepaytest is in the ~/.biblepay directory, thats where I usually have it on non prod sancs. )

Indeed. when i pointed the cli to the test config file it worked just fine..  Haah can be that easy sometimes right :)     I also tested to pound out all the rpc commands , external ip and such on another node and it still worked so seems they are not needed indeed.

Quote
Test case to ensure an individual sanctuary can play a video directly from the sanc:

This is a nice feature even though it would be a long shot to actually use it, this allows you to play a Sanc video directly from the sanc into the browser (no CDN required).  So if your videos are synced, and you have a connection to the sanc, and the rest of the world is down, the video will still play.

URL:

https://sanc185182186162.cdn.biblepay.org:8443/BMS/PlayVideos

Note that this video list will grow as your sanc syncs to 100%.  We only have about 300 videos right now being stored (these videos are the ones uploaded into social.biblepay.org into the video room, that is what we are hosting).

So to perform the test just click on one of the videos, and notice the sanc will generate a local url (a url playable directly from the sanc), then skip around in the video and ensure it plays.


I tested to play some videos from the sanc, its cool man...  I like the BBP logo on the video player. The buffering wasnt to bad either when scrolling thru the videos.
Looking sweet rob. 
I noticed when clicking from the sanc onto the video it says the  "certificate is not valid" 

Quote
Here is a little tiny test case that shows which nodes Your sanc knows about (this is so it knows how to reach out and refer video streamers to another sanc, if your sanc if missing a piece for example).  It also comes into play with our VIDEO-POSE (where sanc operators dont get paid if they run inferior nodes, ie low proc count and low hard drive size):

https://sanc185182186162.cdn.biblepay.org:8443/BMS/Nodes

If you run that command from a browser you should see everyone that your node connected to.
Note that the 64 processor machine is my home desktop but its not always on, so it would be a prime example of one getting POSE banned.
And I see your new node has 6 procs, way to go man.

We will also have other VIDEO-POSE rules (like hashes per sec) so that people cant cheat this etc.  I think when the sidechain is released we can also test that a node is fully synced too.  (For now however we do ensure the node can do 1MM HPS, that the hard drive is 399gb or greater and 6 proc count) so that this is very fair...

Pretty cool to see this stuff coming into fruition. I mean one thing talking about it, another ball game to test it out.  On the sancs what do the "FullyQualified":false}]   mean? 
I noticed some of the nodes had  true or false.

Well i saw that you wrote more in the post :
Quote
And so how does this actually work for users?
The way it works for users is when the user hits our global CDN (thats our load balancer), this load balancer pushes the traffic out to one of our 'fully qualified bms nodes' (they get fully qualified when their reverse dns record is established and they are synced), and when that video request starts, it is only for seconds 1-5 of the video.  Each 5 seconds are re-evalutaed and the video is streamed from whichever node has the piece.  So a 20 min video might have 200 pieces, and each 5 sec piece is streamed independently from a different sanc (it is not designed for one sanc to stream an entire video but rather each piece is evaluated as the video is played, and pulled from the sanc that has it).
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 22, 2022, 04:43:06 PM
Hey.

Indeed. when i pointed the cli to the test config file it worked just fine..  Haah can be that easy sometimes right :)     I also tested to pound out all the rpc commands , external ip and such on another node and it still worked so seems they are not needed indeed.

I tested to play some videos from the sanc, its cool man...  I like the BBP logo on the video player. The buffering wasnt to bad either when scrolling thru the videos.
Looking sweet rob. 
I noticed when clicking from the sanc onto the video it says the  "certificate is not valid" 

Pretty cool to see this stuff coming into fruition. I mean one thing talking about it, another ball game to test it out.  On the sancs what do the "FullyQualified":false}]   mean? 
I noticed some of the nodes had  true or false.

Well i saw that you wrote more in the post :

So on the certificate invalid, thats OK, thats because we dont pass the cert URL in when you play the video (thats because that would require a special CORS rule which we dont have yet) so for simple debugging (since these pages are meant for sanc ops only) yeah thats still showing the IP itself has no ssl cert.  We might be able to add a cors rule for that though soon.

Now on the fully qualified, the FQ boolean always shows false for your own sanc *if* being viewed from the sanc itself (this is to keep it from calling itself for missing pieces of videos). And its FQ=false when someone runs a node < min requirements.
But you can check on your own node from the viewpoint of someone elses node like this:

https://globalcdn.biblepay.org:8443/BMS/Nodes
Note that your node is FQ=true now meaning its actually ready to serve some videos and it would get paid. Notice my 64 proc machine = false, thats because its not responding.
(Although I think we need a little refining on not setting them to FQ=true until the video chain is synced.. will look at that too).

Alright looks good.  I'm working on exposing the sidechain features next.

Also one other exciting feature is the auto upgrade feature.  We need to test that next... Ill put together a test case today.



Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 23, 2022, 07:39:53 AM
Automatic Upgrade test case:

So the BMS nodes have a nice feature in that they can automatically upgrade themselves when we have a new version. 
So to test this, we were on version 1029 last night.  I just added a tiny feature to demonstrate this upgrade ability.
In this page:

https://globalcdn.biblepay.org:8443/BMS/Status

I made it JSON instead of homegrown. 
This page itself also reveals the version (which should now be 1030).

From your sanc IPs, please hit this page and see if your version increased?

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on April 23, 2022, 11:03:19 AM
Quote
Automatic Upgrade test case:

So the BMS nodes have a nice feature in that they can automatically upgrade themselves when we have a new version.
So to test this, we were on version 1029 last night.  I just added a tiny feature to demonstrate this upgrade ability.
In this page:

https://globalcdn.biblepay.org:8443/BMS/Status

I made it JSON instead of homegrown.
This page itself also reveals the version (which should now be 1030).

From your sanc IPs, please hit this page and see if your version increased?

I just checked the vps and i see that the bms has changed from 10.2v to 10.31 version.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 25, 2022, 07:10:51 AM
I just checked the vps and i see that the bms has changed from 10.2v to 10.31 version.

Ok great.

I will work to release the sidechain feature next then we can test that.

We are going to need a mandatory upgrade on the biblepayd for the sancs soon, but no rush (not released to github yet).

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on April 28, 2022, 06:44:10 PM
*** Additional Instructions Added to BMS Install Wiki ***


Testers, the BMS installation procedure has been enhanced to allow our sidechain to work with MySQL.
This will give us the unique ability to be the first known coin that can leverage DSQL in mainnet (allowing our social media product to run on the sidechain, and, giving us many other Layer 2 features).

The wiki guide here has been extended:

https://wiki.biblepay.org/Install_BMS

For those of you who already have BMS running please do the following:

Stop BMS by going to the node, to the terminal, and simply press ctrl-c.  (It may already be stopped due to the failed upgrade, simply continue from here with the BMS program stopped).

Find the place in the document where it says "Installing MYSQL".  Start running those commands as root until "End of MySQL".

Once finished, start BMS again (by running the command to start the node:  dotnet BiblePay.BMSD.dll).

At this point the menu should appear and the node should not crash.

Post if you have trouble.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 02, 2022, 09:13:38 AM
Next I'm going to post some test cases related to BMS that should work After MySQL is installed on your local BMS node (before that point these commands dont work).  Also note that each of our sancs have one decentralized mysql database each.  This is so we can decentralize the DSQL queries.  That will allow our front end systems, such as social media system or Gospel Front End System, to reach the decentralized database for SQL queries.

Test 1, ensure your sidechain syncs:

Restart BMS.  Verify you are at block 152 or higher:
https://globalcdn.biblepay.org:8443/BMS/Status

To get the block hash try this:
https://globalcdn.biblepay.org:8443/BMS/GetBlock?id=152

This will also show you the transactions in that block and the hash and the diff etc.

Note that social.biblepay.org is already using our sidechain for Photos and Videos.
So this next test, lets add a photo to a group in social.biblepay.org.  To do this go to any group (or you could go to your home profile timeline) and then Add a picture.  Save the post.
Now quickly go to this page
https://globalcdn.biblepay.org:8443/BMS/Status


At this point the memory pool should have 1 transaction waiting.  Once it is mined, you can then go to the new block number (IE if its one higher, you have to change the block height here):  Change NNN to the correct height:
https://globalcdn.biblepay.org:8443/BMS/GetBlock?id=NNN

Then look for the transaction that contains your image.
This shows how we not only have a decentralized file storage system, but now a decetranlized DSQL system also.

(On a side note, optionally, you can install mysql workbench on Windows PC if you want to learn how to query your own sanctuary for the image metadata). But that is mostly unecessary because we can do this with RPC commands. 

Let me know when you all are up to this point and I will move on to explain a video.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 02, 2022, 09:20:41 AM
So our videos are stored in HLS format so they can be decentralized (meaning they are split up into many pieces) which gives us the ability to stream them from multiple sancs and view them with fast start.
To test this, its easiest to upload a small mp4 (smaller than 5 meg) simply because otherwise you will be waiting for the file to be converted from mp4 to HLS before you see the block transactions start.

I uploaded  a  5 meg file to a group in this block:
https://globalcdn.biblepay.org:8443/BMS/GetBlock?id=146

To try this, upload your file.  Then quickly go to the:
https://globalcdn.biblepay.org:8443/BMS/Status
Page, and look at the memory pool.  Once the file is converted to HLS, you will see the memory pool increase in size for each Piece of the file.

Then view the block:
https://globalcdn.biblepay.org:8443/BMS/GetBlock?id=146

Find the *.ts files.  Each .ts file is a piece of your video and this metadata is stored across our DSQL servers so everyone has exactly the same view.
Additionally, our SQL server creates a representation or "view table" (one table per data type) automatically, so that our front end system can access this metadata with extremely fast speed.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on May 03, 2022, 12:52:27 PM
*** Additional Instructions Added to BMS Install Wiki ***


Testers, the BMS installation procedure has been enhanced to allow our sidechain to work with MySQL.
This will give us the unique ability to be the first known coin that can leverage DSQL in mainnet (allowing our social media product to run on the sidechain, and, giving us many other Layer 2 features).

The wiki guide here has been extended:

https://wiki.biblepay.org/Install_BMS

For those of you who already have BMS running please do the following:

Stop BMS by going to the node, to the terminal, and simply press ctrl-c.  (It may already be stopped due to the failed upgrade, simply continue from here with the BMS program stopped).

Find the place in the document where it says "Installing MYSQL".  Start running those commands as root until "End of MySQL".

Once finished, start BMS again (by running the command to start the node:  dotnet BiblePay.BMSD.dll).

At this point the menu should appear and the node should not crash.

Post if you have trouble.


Evenin Brother Rob.

I got the BMS up and running again.

The  part : Installing Local MySQL database  , went just fine for me no hickups there. Copy pasting the terminal commands no problems.

 I did check now in the browser and got:

Code: [Select]
{
  "URL": "https://185.182.186.162:8443",
  "BMS_VERSION": 1039,
  "COMMON_VERSION": 1002,
  "Status": "OK",
  "Synced_Count": 1070.0,
  "File_Count": 144628.0,
  "Synced_Percent": 0.007398290275860118,
  "EOF": "<EOF>",
  "Memory_Pool_Count": 0,
  "Best_Block_Hash": "00005450cb29ae91e2a2decd27c2d8d101b6c1cb49cbd7f5e92cd459f9818807",
  "Block_Count": 159,
  "Hashes": 519
}

I will do the test cases you posted tomorrow.
Talk to you laters.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 05, 2022, 05:38:24 PM
All,

I'm working on adding some powerful features to BMS including the ability to serve a GUI from our sanctuaries.  This means we will be able to add gospel features to BMS later, and in the near term, we can convert our RandomX pools over to Sanc Pools (meaning that every BMS node would not only be a CDN and a video streamer, but also a randomX mining pool.)

Since this upgrade is major the nodes cannot upgrade themselves in this case, so I expanded the wiki guide to include Manually upgrading the node.

Please see this guide:
https://wiki.biblepay.org/Install_BMS

See the bottom section, manually upgrading.  Please follow that and your node should upgrade.

Then you can move on to testing the Sidechain test cases.  In the mean time I will work on porting a RandomX pool to the BMS sidechain.


Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 06, 2022, 02:47:26 PM
Hi All,

I had a couple people ask me in chat about testnet syncing and I finally had a chance to verify the sync.
Im on Exodus 0.17.2.2, and we seem to be on block 143823.
Here is a good hash:
14:45:32
getblockhash 143823

14:45:32
8768e6e083ba46ad58bfc3d1eeced588cf5066969f40116b094856bdb0d742f0

I believe we are in sync (my sanc has stayed in sync with my home node).
It could be that no one was mining (from what I can see no one was mining for 5 days).
I turned on my miner and we moved up a block...

Please verify the hash above?

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on May 07, 2022, 06:01:51 AM
Mornin.

Quote
Here is a good hash:
14:45:32
getblockhash 143823

14:45:32
8768e6e083ba46ad58bfc3d1eeced588cf5066969f40116b094856bdb0d742f0

My testnet wallet syncs just fine now.
Code: [Select]
10:52:03
getblockhash 143823


10:52:03
8768e6e083ba46ad58bfc3d1eeced588cf5066969f40116b094856bdb0d742f0

Looks same as yours Rob, looks accurate.

On the installation of the  https://wiki.biblepay.org/Install_BMS (https://wiki.biblepay.org/Install_BMS)

The manual upgrade of the BMS on the sanc went without any troubles , just copy paste commands for me.


Quote
Test 1, ensure your sidechain syncs:

Restart BMS.  Verify you are at block 152 or higher:
https://globalcdn.biblepay.org:8443/BMS/Status

To get the block hash try this:
https://globalcdn.biblepay.org:8443/BMS/GetBlock?id=152

This will also show you the transactions in that block and the hash and the diff etc.

Looking at the bms i can see that its at block 172.
Code: [Select]
{
  "URL": "https://185.182.186.162:8443",
  "BMS_VERSION": 1047,
  "COMMON_VERSION": 1003,
  "Status": "OK",
  "Synced_Count": 145194.0,
  "File_Count": 145194.0,
  "Synced_Percent": 0.9999999311266352,
  "EOF": "<EOF>",
  "Memory_Pool_Count": 0,
  "Best_Block_Hash": "000047aeb2a015ba903b3279ae2dfcc183e035eeb11ead618ca3a9fadc59bdee",
  "Block_Count": 172,
  "Hashes": 81364
}

I also tested the blockhash

Code: [Select]
{
  "Version": 1,
  "PreviousBlockHash": "0000b39315a9de15a80a41f7f31cbd1a93fcd73ecf2b0eb51b1bfbf4794cd4e8",
  "MerkleRoot": "37feb5947ec3c60f5d05af7bbbf023997862b90bb66dccfb4622bebc7d78fa59",
  "Time": 1651493630,
  "Target": 1766847064778384329583297500742918515827483896875618958121606201292619775,
  "Nonce": 393054,
  "BlockNumber": 152,
  "Transactions": [
    {
      "Data": "{\"field1\":\"https://7e825619-9da1-4b87-bcba-577aeef9bd28\",\"field2\":\"https://99bde5a8-da37-49da-99ff-929794a3756d\",\"me_id\":4000,\"table\":\"Junk2\",\"nMeID\":1.0}",
      "Time": 1651493625,
      "BlockHash": "00001107a8f9f1803b15ebddf30fd0bf0277d852d722372cac9c1c44977a19c8",
      "Height": 152
    },
    {
      "Data": "{\"field1\":\"https://3b168786-1e58-46bb-8377-e4f777a195ab\",\"field2\":\"https://62cd6ce1-12a2-4ccf-9ca7-770d97a88f97\",\"me_id\":7000,\"table\":\"Junk2\",\"nMeID\":1.0}",
      "Time": 1651493625,
      "BlockHash": "00001107a8f9f1803b15ebddf30fd0bf0277d852d722372cac9c1c44977a19c8",
      "Height": 152
    },

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Quote
Note that social.biblepay.org is already using our sidechain for Photos and Videos.
So this next test, lets add a photo to a group in social.biblepay.org.  To do this go to any group (or you could go to your home profile timeline) and then Add a picture.  Save the post.
Now quickly go to this page
https://globalcdn.biblepay.org:8443/BMS/Status


At this point the memory pool should have 1 transaction waiting.  Once it is mined, you can then go to the new block number (IE if its one higher, you have to change the block height here):  Change NNN to the correct height:
https://globalcdn.biblepay.org:8443/BMS/GetBlock?id=NNN

Then look for the transaction that contains your image.
This shows how we not only have a decentralized file storage system, but now a decetranlized DSQL system also.


Next i uploaded a image to social and followed the instructions:
Code: [Select]
"Transactions": [
    {
      "Data": "{\"URL\":\"upload/photos/2022/05/ZwJcrXZVlWIrxRYxGNGy_07_c846a84e7dee71ba98459c475ec2da98_image.jpg\",\"Added\":\"5/7/2022 5:37:18 AM\",\"userid\":\"3\",\"size\":11535,\"syncedlocal\":\"0\",\"syncedremote\":\"0\",\"table\":\"pin\"}",
      "Time": 1651919838,
      "BlockHash": "000003f84d42083417689806396c3cfe6689df21d5611764c1806449ef6bc32b",
      "Height": 173
    },
    {
      "Data": "{\"URL\":\"upload/photos/2022/05/ZwJcrXZVlWIrxRYxGNGy_07_c846a84e7dee71ba98459c475ec2da98_image_small.jpg\",\"Added\":\"5/7/2022 5:37:17 AM\",\"userid\":\"3\",\"size\":14519,\"syncedlocal\":\"0\",\"syncedremote\":\"0\",\"table\":\"pin\"}",
      "Time": 1651919837,
      "BlockHash": "000003f84d42083417689806396c3cfe6689df21d5611764c1806449ef6bc32b",
      "Height": 173
    }

and upon inspecting my picture at social hitting the "open original"  button :
Code: [Select]
https://sanc1.cdn.biblepay.org:8443/upload/photos/2022/05/ZwJcrXZVlWIrxRYxGNGy_07_c846a84e7dee71ba98459c475ec2da98_image.jpg
i can see them matching.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 07, 2022, 09:20:47 AM
Hi Bro Earlz,

Great on the testnet sync!  Great on the great testing.
So just so you understand, any data that gets inserted in the sidechain between blocks (into DSQL tables) also gets replicated into your local node into the mysql tables.  If they do not contain the correct schema, the schema is automatically expanded.  If records need inserted they get inserted (as that block syncs).
So for example, last night I inserted 100 records into Gospel Illustration/Article/Wiki on the sidechain (so we can make a decentralized gospel menu).
You can see some of these transactions in this block:
https://sanc185182186162.cdn.biblepay.org:8443/BMS/getblock?id=172

So this means as an admin of your node you could theoretically go into Mysql and type 'select * from Illustrations' and see these particular records now they are available to the front end gospel app.

I will move on to creating v1.0 of our GUI so we can demo that soon.


Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 08, 2022, 01:36:40 PM
So I guess I can let the cat out of the bag:  The Gui 1.0 has been released.

So if you go to the root of your sanc address like this:
https://sanc185182186162.cdn.biblepay.org:8443/

We now respond with a gui.  Note that in the future, we will be able to get rid of the port once we have a BBP wallet (or metamask) login schema working.
But anyway lets talk about what we have now.

First of all, the theme settings are now working, you can click your avatar circle and change to dark, light theme etc.  Note that our new themer also supports 16 sub themes, so you can also pick a color above the master theme, and it will tint the menus and tables for you and the theme is stored on your machine.

So I ported Accountability over to the sidechain:  All the expenses, revenue, orphans and orphan expenses now live in 4 sidechain tables (these went in the last 5 blocks or so).
So if you click on Accountability, then run a report, we actually run this report from the sidechain on your node and gen the pdf, its pretty interesting...
(Of course permissions are not complete yet, so we still need to devise a way to let an authorized signing key Add more expense records.  Im currently the one to add the monthly expense record but we can decentralize that by having an ACL list feature added to BMS). 

Next check out In Development | Demo Dash | Demo Table.  This just proves that our next upcoming datatable will support sorting, searching, and Pagination.  If you use the Search option on the new datatable, this searchbar limits the results down to rows that contain the search anywhere in the system (for example, say historical payouts for randomx , you could type in a few character etc).  And check out the accordian, its a bootstrap feature that lets the user minimize a section of a page .

Now check out Gospel menu.  Each of the 5 sub menu items, those actually required me to port Illustration, Wiki, and Article tables from our centralized sql server over to the decentralized sidechain, so all those records are decentralized now too!  So click on some Theological studies for example, and its pulling the record from your local sidechain then displaying its corresponding article.

Look good?

Im still working on a new scheme to decentralize the bbp wallet send-money page from unchained - so that the private key is either tied to metamask, or possibly to a bbp browser plugin.  Im thinking about using Metamask to handle our logins and then we can port the User Profile over to the decentralized chain.  So for example what Im thinking you come in as a new user, if you dont have metamask we tell you to install it and then you can log on, otherwise you cannot log on without metamask.

If you do have metamask, we ask you to sign a code (once every week roughly) or when you log out--and this login page then gives you access to your decentralized profile like any other web site (until logged off), and your profile is then stored on the sidechain.  (For nickname, name, anything else we might normally need, bbp public key, utxo pub key etc). 

Then our users would always be using their pub cryptokeys to access our site (similar to openseas method).... I think this might invite a lot more of the hardcore web3 community over here.  With the goal being to eliminate the username and password login in the future phasing out traditional logins.  Then we need to move the bbp wallet (for web purchases) to either a plugin on the page, or, to a derived key based on something you sign in metamask (Im still thinking about this idea, because I want it to be easy for the user, and maybe having metamask is asking enough for the user, if they already have to use metamask to log in, they may not want a second plugin).  But anyway I could envision someone signing a "bbp" message from metamask, then our javascript can derive their keypair from that signature - hence being the method for spending from the bbp webwallet, and in this case user would not lose the bbp priv key as long as they can access current metamask - and of course all we store in the sidechain is the public erc20 address to link the user to the profile.  (Im leaning toward this method for our next iteration).




Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 11, 2022, 09:14:15 AM
Reminder for MIP and me:
When we retire our windows pool server, we will need to move the endpoint for the "MobileAPI" to a new endpoint.
I will update the OP post with this.  I think this will need to be in production by June 30th (and cannot be tested earlier than June 1st).

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on May 17, 2022, 10:17:54 AM
Good afternoon.

Quote
First of all, the theme settings are now working, you can click your avatar circle and change to dark, light theme etc.  Note that our new themer also supports 16 sub themes, so you can also pick a color above the master theme, and it will tint the menus and tables for you and the theme is stored on your machine.

Easy to change the themes, the default indigo blue looks awesome. dark mode not to bad either. Well alot of choices, thumbs up Rob.
(https://i.ibb.co/G7G8ddL/themes.jpg) (https://imgbb.com/)


Quote
Now check out Gospel menu.  Each of the 5 sub menu items, those actually required me to port Illustration, Wiki, and Article tables from our centralized sql server over to the decentralized sidechain, so all those records are decentralized now too!  So click on some Theological studies for example, and its pulling the record from your local sidechain then displaying its corresponding article.

The gospel feature looks real nice aswell.  Illustrations with all the pictures are a  sweet addition. The wiki and the theological  studies looks fine to me.  Easy to read, the font size looks all good on my 1080p monitor.

One thing i was thinking of was when you click on "Bible viewer"  you get forwarded to biblegateway in the same tab, personally i think would be better if it opens up in new tab so that the sanc  ip tab is still there.


Overall i think it looks fine Rob, snappy and no lags when navigating around.  Will be intresting to see what comes next.

laters.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 17, 2022, 12:59:50 PM
Good afternoon.

Easy to change the themes, the default indigo blue looks awesome. dark mode not to bad either. Well alot of choices, thumbs up Rob.
(https://i.ibb.co/G7G8ddL/themes.jpg) (https://imgbb.com/)


The gospel feature looks real nice aswell.  Illustrations with all the pictures are a  sweet addition. The wiki and the theological  studies looks fine to me.  Easy to read, the font size looks all good on my 1080p monitor.

One thing i was thinking of was when you click on "Bible viewer"  you get forwarded to biblegateway in the same tab, personally i think would be better if it opens up in new tab so that the sanc  ip tab is still there.


Overall i think it looks fine Rob, snappy and no lags when navigating around.  Will be intresting to see what comes next.

laters.

Thanks for Testing Earlz!
Yeah that sounds like a good idea, we can open a new tab for the bible viewer.

On a side note, the data that you view when you view accountability for example is stored in the sidechain now, so that is a nice addition.
(Illustrations, wiki, expenses, revenue) all that is in the sidechain.

Since my last post, I ported our RandomX mining system in to aspnetcore.  Isnt it interesting that our users will be mining against sanctuaries?

I also built out a separate randomx pool for testnet, and one for mainnet.  So now we can mine properly (and test properly) in testnet for our releases.  (That will come in handy when we make a large code change and we have to test true randomx mining).  The sanctuary will pay the user for their mining activity from the hot wallet balance in the sanctuary. 

I will put together a test case now so you guys can test some randomx mining in testnet next.
Theoretically what we will do is expose a few of our sancs to port 80 and start a load balanced BMS presence for production.  When we go live at the end of June, we can take down foundation.biblepay.org and point that domain over to unchained.biblepay.org, and take down unchained also, and point that domain to our Sanc pool.
This means this software you are testing now will end being our Mining pool, our Staking (portfolio builder) interface, our BBP University, our memorize scriptures, our gospel web pages, and it will also allow you to log in via metamask (like a web 3 login).  I didnt see any comments or questions on that-- do you all understand, and like that feature?  We will be doing away with username and password in the next release.

Not sure if you clicked the accountability PDFs; please be sure those work too.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 18, 2022, 09:16:55 AM
Very large BMS release this week - just released.  Miraculously, the auto upgrade process seemed to work for our testnet participants (looking at Earlz node it appears to be upgraded, should be on v1054 now. ) I'm surprised because this new version adds a dependency for Nethereum, which normally requires a manual upgrade but we'll cover that when we get to portfolio builder.

This upgrade includes:  RandomX mining against sancs, mining in testnet And mainnet against sancs, Switching Chains, Web3 Login:Authenticating with metamask (in contrast to usernames and passwords), a user profile page, profile avatar, BBP web wallet (based on metamask for your BBP priv key), Logging Out (clearing the metamask sig), The chain indicator in the header, The logged in indicator, The RandomX pool pages (metrics , leaderboard etc), half of BBP Univ, 75% of portfolio builder, Charts for PB & mining.

So first we need to tackle logging in and logging out (web 3 authentication) before we can discuss anything else (otherwise you cant see your profile or switch chains etc).

The user record is now decentralized and stored on the sidechain, so before we go to prod we need to obfuscate the email address (as that is our only sensitive field at this point) thats not done yet.

The way we access your user record is :  Now your metamask public ERC-20 key is your user record primary key, and that pulls up your profile which pulls your avatar, email address, nickname, PB pub signature etc.

So lets go through a few test cases to get logged in and out using web3:

Navigate to my sanc1 for these tests (you can do a lot of this on your own node if you want, but will get errors when doing the RX tests because you need a lot of pool settings to run a pool) so I will recommend just use this endpoint for these tests:

https://sanc20914556214.cdn.biblepay.org:8443/

If you go to that sanc1, you will see the new UI and the new menu. 
Test case to Register as new User:
- Go to Authentication - Profile
- Our system recognizes you are new, and launches metamask (if you dont have metamask, I think it just throws an error telling you its not installed.  We need to make it redirect you to wiki page to explain this web3 mechanism before we go live).  Anyway if you have metamask installed, it will prompt you with a signature request.
- The sig request is the brand new non harmless type (IE cant access coins) and its a signing request for logging in.  Now sign the message.
- We store this signature for up to 30 days as a cookie on your machine.  If you are on a non-secure machine you can Log Out, otherwise for convenience you can keep coming back authenticated.
- Once logged in the header should say Logged In.

Test to populate your profile:
- Navigate to Authentication | Profile
- Populate nickname and save it .  Change avatar.  It should auto save the avatar.
- Verify that you have a BBP wallet (this wallet is now derived from your Metamask key! An improvement).  Another words if you move machines, and reload your metamask key, your bbp webwallet coins will move with you.
(Lets test spending some coins from the web wallet.  )
- First, Switch chains by clicking Change Chain- then the header should show chain : TESTNET.
- In testnet mode, verify your bbp wallet has an address for TESTNET now (its no longer starting with a B).
- Try spending some testnet coins by sending them to your biblepaycore wallet.  Verify they come through on the core wallet side.

Test to Log Out:
Click the top right avatar circle | Log Out.
Verify the header shows logged out.
If you navigate to Profile, it will try to log you in again (simply because we have that process there to log a user in who has been logged out).


Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 18, 2022, 09:23:34 AM
Just for sanity sake since Im mining against sanc1 in testnet, can you please verify the hash Earlz:


09:22:35
getblockhash 145394


09:22:35
adf539f4df232ffc9bedcee77ba9a0402932b10a28d711ec5b2db9d995bbc417


Are we all in sync?

Next I will write a test case so we can test some randomx mining in testnet! 

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 18, 2022, 09:30:19 AM
** RandomX TestNet Mining Case **

So I made this page relatively accurate for a new user to get started (its similar to the one we have) but it dynamically populates the port too depending on which chain you are on and the DNS address of the sanc you are mining against:

Be sure to change your chain to TESTNET mode before hitting this page (your header should say TESTNET):
https://sanc20914556214.cdn.biblepay.org:8443/bbp/poolgettingstarted
(That ensures the port on the page is correct).

So looking at that page, you can make a new batch file on windows to mine against sanc1.  In my case Im mining against port 3002 against sanc1.

And then you can wait a little while and check our Leaderboard, and it should be very similar to what you are used to in Foundation (its a direct port of our old software).
Next you can go to Pool Metrics and see that your hashpower has increased the pool hashpower.

Finally, lets mine for a while then wait 24 hours, and you should receive testnet coins from the sanctuary over to your personal wallet.
Be sure that you have your Testnet BBP address in your mining batch file so the pool can pay on the right chain.

Then give us an update that you actually got paid (I recommend using an address book address that is labeled for TestNet mining so you know that you got it).

Btw, if anyone wants to mine against prod, that code is running against MainNet live (against our current mainnet branch version) so it should theoretically mine and pay (thats why you should see the correct Height in the Pool Metrics page for mainnet and the correct height for TestNet).

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on May 18, 2022, 11:55:10 AM
Just for sanity sake since Im mining against sanc1 in testnet, can you please verify the hash Earlz:


09:22:35
getblockhash 145394


09:22:35
adf539f4df232ffc9bedcee77ba9a0402932b10a28d711ec5b2db9d995bbc417


Are we all in sync?

Next I will write a test case so we can test some randomx mining in testnet!

Indeed we are in sync, i ran the getblockhash and i get the same numbers as you.  I also ran the mnsync status and the masternode status command and both looks good.

I also saw that the bms has auto updated successfully to the new version.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on May 22, 2022, 11:32:19 AM
Evenin Brother Rob.

Quote
I will put together a test case now so you guys can test some randomx mining in testnet next.
Theoretically what we will do is expose a few of our sancs to port 80 and start a load balanced BMS presence for production.  When we go live at the end of June, we can take down foundation.biblepay.org and point that domain over to unchained.biblepay.org, and take down unchained also, and point that domain to our Sanc pool.
This means this software you are testing now will end being our Mining pool, our Staking (portfolio builder) interface, our BBP University, our memorize scriptures, our gospel web pages, and it will also allow you to log in via metamask (like a web 3 login).  I didnt see any comments or questions on that-- do you all understand, and like that feature?  We will be doing away with username and password in the next release.

Not sure if you clicked the accountability PDFs; please be sure those work too.

I checked out the accountability reports and they all work for me, no problems there.
The orphan collage and the water wells for children in Pakistan works aswell.

I like the ease of access in the menue for sure.
I also verified the blockhash on my home core wallet:
Code: [Select]
17:50:57
getblockhash 145394


17:50:58
adf539f4df232ffc9bedcee77ba9a0402932b10a28d711ec5b2db9d995bbc417
Im in sync on this node aswell.

Quote
Test case to Register as new User:
- Go to Authentication - Profile
- Our system recognizes you are new, and launches metamask (if you dont have metamask, I think it just throws an error telling you its not installed.  We need to make it redirect you to wiki page to explain this web3 mechanism before we go live).  Anyway if you have metamask installed, it will prompt you with a signature request.
- The sig request is the brand new non harmless type (IE cant access coins) and its a signing request for logging in.  Now sign the message.
- We store this signature for up to 30 days as a cookie on your machine.  If you are on a non-secure machine you can Log Out, otherwise for convenience you can keep coming back authenticated.
- Once logged in the header should say Logged In.

The log in with the metamask wallet worked just fine, easy as pie.

Quote
Test to populate your profile:
- Navigate to Authentication | Profile
- Populate nickname and save it .  Change avatar.  It should auto save the avatar.
- Verify that you have a BBP wallet (this wallet is now derived from your Metamask key! An improvement).  Another words if you move machines, and reload your metamask key, your bbp webwallet coins will move with you.
(Lets test spending some coins from the web wallet.  )
- First, Switch chains by clicking Change Chain- then the header should show chain : TESTNET.
- In testnet mode, verify your bbp wallet has an address for TESTNET now (its no longer starting with a B).
- Try spending some testnet coins by sending them to your biblepaycore wallet.  Verify they come through on the core wallet side.

Nickname and avatar i had no problem to change, i can confirm that i have a bbp wallet adress that starts with a  y and not a b for the testnet and switching chains switches the bbp adress aswell.

Next i sent some tBBP to the new wallet adress.

This is as far as i have come, it does not seem to me like the funds have arrived at the new wallet,  5 confirmations i see in the core wallet:

Code: [Select]
Status: 5 confirmations, locked via ChainLocks
Date: 5/22/2022 17:27
To: yUZLNhASGdT6PrY4Ypfv4FySAd1fjLifaj
Debit: -10 000.00000000 tBIBLEPAY
Transaction fee: -1.52611867 tBIBLEPAY
Net amount: -10 001.52611867 tBIBLEPAY
Transaction ID: 86584ea4d831ebb19b10d4d5fa0295a077c99ded9ce655135b22941488319625
Output index: 1
Transaction total size: 1521 bytes

Height: 145881

I have tested to log out and log back in, refresh etc.
Any ideas Rob?

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 22, 2022, 12:14:29 PM
Evenin Brother Rob.

I checked out the accountability reports and they all work for me, no problems there.
The orphan collage and the water wells for children in Pakistan works aswell.

I like the ease of access in the menue for sure.
I also verified the blockhash on my home core wallet:
Code: [Select]
17:50:57
getblockhash 145394

Height: 145881

I have tested to log out and log back in, refresh etc.
Any ideas Rob?

Hi Earlz,

Great testing.
So on the testnet transfer, which sanc are you debugging against your sanc or this one:
https://sanc20914556214.cdn.biblepay.org:8443/bbp/poolgettingstarted

The reason I ask is the RandomX mining and the Balance testing needs done against sanc1 (the one pasted above 201914556214) simply because the pool settings need enabled for the server side to ascertain your tBBP (and mainnet balance).  I would have to walk you through how to set up a pool for you to be able to see your own balance from your own sanc.

When you hit my sanc does your correct balance show?
You can also try spending it etc.

(Btw, balances should show in about 1 block).

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on May 22, 2022, 01:15:42 PM
Hi Earlz,

Great testing.
So on the testnet transfer, which sanc are you debugging against your sanc or this one:
https://sanc20914556214.cdn.biblepay.org:8443/bbp/poolgettingstarted

The reason I ask is the RandomX mining and the Balance testing needs done against sanc1 (the one pasted above 201914556214) simply because the pool settings need enabled for the server side to ascertain your tBBP (and mainnet balance).  I would have to walk you through how to set up a pool for you to be able to see your own balance from your own sanc.

When you hit my sanc does your correct balance show?
You can also try spending it etc.

(Btw, balances should show in about 1 block).

Indeed Rob. That was the culprit i was trying to do this on my own sanc. Now i tested on your 209 sanc and for sure i can see the balance, sweet.

ill try the randomx mining tomorrows against ur sanc.
Have a good one.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on May 24, 2022, 12:57:44 PM
Evenin.

** RandomX TestNet Mining Case **

So I made this page relatively accurate for a new user to get started (its similar to the one we have) but it dynamically populates the port too depending on which chain you are on and the DNS address of the sanc you are mining against:

Be sure to change your chain to TESTNET mode before hitting this page (your header should say TESTNET):
https://sanc20914556214.cdn.biblepay.org:8443/bbp/poolgettingstarted
(That ensures the port on the page is correct).

So looking at that page, you can make a new batch file on windows to mine against sanc1.  In my case Im mining against port 3002 against sanc1.

And then you can wait a little while and check our Leaderboard, and it should be very similar to what you are used to in Foundation (its a direct port of our old software).
Next you can go to Pool Metrics and see that your hashpower has increased the pool hashpower.

Finally, lets mine for a while then wait 24 hours, and you should receive testnet coins from the sanctuary over to your personal wallet.
Be sure that you have your Testnet BBP address in your mining batch file so the pool can pay on the right chain.

Then give us an update that you actually got paid (I recommend using an address book address that is labeled for TestNet mining so you know that you got it).

Btw, if anyone wants to mine against prod, that code is running against MainNet live (against our current mainnet branch version) so it should theoretically mine and pay (thats why you should see the correct Height in the Pool Metrics page for mainnet and the correct height for TestNet).

I created a new batch file for xmrig with the following contents:
Code: [Select]
@echo off
xmrig.exe --donate-level 1 -o sanc1.biblepay.org:3002 -u my_monero_adress -p my_biblepay_testnet_adress --rig-id=rig00 --cpu-affinity 0x79e79e  -k -t 16 --log-file=sanctest
pause

And it connects just fine to your sanc Rob.
Code: [Select]
* ABOUT        XMRig/6.5.1 MSVC/2019
 * LIBS         libuv/1.40.0 OpenSSL/1.1.1h hwloc/2.2.0
 * HUGE PAGES   permission granted
 * 1GB PAGES    unavailable
 * CPU          AMD Ryzen Threadripper 1920X 12-Core Processor (1) x64 AES
                L2:6.0 MB L3:32.0 MB 12C/24T NUMA:1
 * MEMORY       5.4/15.9 GB (34%)
 * DONATE       1%
 * ASSEMBLY     auto:ryzen
 * POOL #1      sanc1.biblepay.org:3002 algo auto
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         disabled
[2022-05-24 19:28:49.237]  net      use pool sanc1.biblepay.org:3002  209.145.56.214
[2022-05-24 19:28:49.238]  net      new job from sanc1.biblepay.org:3002 diff 250012 algo rx/0 height 2630596
[2022-05-24 19:28:49.239]  cpu      use argon2 implementation AVX2
[2022-05-24 19:28:49.645]  msr      register values for "ryzen" preset has been set successfully (407 ms)
[2022-05-24 19:28:49.645]  randomx  init dataset algo rx/0 (24 threads) seed c258e69a83509a5c...
[2022-05-24 19:28:49.647]  randomx  allocated 2336 MB (2080+256) huge pages 100% 1168/1168 +JIT (1 ms)
[2022-05-24 19:28:51.504]  randomx  dataset ready (1857 ms)
[2022-05-24 19:28:51.504]  cpu      use profile  *  (16 threads) scratchpad 2048 KB
[2022-05-24 19:28:51.986]  cpu      READY threads 16/16 (16) huge pages 100% 16/16 memory 32768 KB (482 ms)
[2022-05-24 19:29:07.955]  net      new job from sanc1.biblepay.org:3002 diff 125006 algo rx/0 height 2630596
[2022-05-24 19:29:15.918]  cpu      accepted (1/0) diff 125006 (424 ms)
[2022-05-24 19:29:17.323]  cpu      accepted (2/0) diff 125006 (403 ms)
[2022-05-24 19:29:38.787]  cpu      accepted (3/0) diff 125006 (431 ms)
[2022-05-24 19:29:44.741]  cpu      accepted (4/0) diff 125006 (384 ms)
[2022-05-24 19:29:51.789]  miner    speed 10s/60s/15m 8360.0 n/a n/a H/s max 8370.2 H/s
[2022-05-24 19:29:56.676]  net      new job from sanc1.biblepay.org:3002 diff 323464 algo rx/0 height 2630597


Looking at https://sanc20914556214.cdn.biblepay.org:8443/gospel/viewer?type=xmrinquiry (https://sanc20914556214.cdn.biblepay.org:8443/gospel/viewer?type=xmrinquiry) and pasting my xmr adress i can see its mining just fine aswell.

I have not received any tBBP yet from the pool but i have not been mining long enough i believe.

(https://i.ibb.co/z4QNGKx/poolstats.jpg) (https://imgbb.com/)

All the pool drop down  menue looks good to me.  Pool Metrics, Leaderboard, Getting started looks to be working. I can see my tBBP wallet adress in the leaderboard.

Overall it feels just like foundation pool , navigation wise. One thing i noted is that in Block History there is no search window  for you to check up on your adress.

I will do an update tomorrow and see if i have gotten any payout on the testnet.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 24, 2022, 01:23:58 PM
Evenin.

I created a new batch file for xmrig with the following contents:
Code: [Select]
@echo off
xmrig.exe --donate-level 1 -o sanc1.biblepay.org:3002 -u my_monero_adress -p my_biblepay_testnet_adress --rig-id=rig00 --cpu-affinity 0x79e79e  -k -t 16 --log-file=sanctest
pause

And it connects just fine to your sanc Rob.
Code: [Select]
* ABOUT        XMRig/6.5.1 MSVC/2019
 * LIBS         libuv/1.40.0 OpenSSL/1.1.1h hwloc/2.2.0
 * HUGE PAGES   permission granted
 * 1GB PAGES    unavailable
 * CPU          AMD Ryzen Threadripper 1920X 12-Core Processor (1) x64 AES
                L2:6.0 MB L3:32.0 MB 12C/24T NUMA:1
 * MEMORY       5.4/15.9 GB (34%)
 * DONATE       1%
 * ASSEMBLY     auto:ryzen
 * POOL #1      sanc1.biblepay.org:3002 algo auto
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         disabled
[2022-05-24 19:28:49.237]  net      use pool sanc1.biblepay.org:3002  209.145.56.214
[2022-05-24 19:28:49.238]  net      new job from sanc1.biblepay.org:3002 diff 250012 algo rx/0 height 2630596
[2022-05-24 19:28:49.239]  cpu      use argon2 implementation AVX2
[2022-05-24 19:28:49.645]  msr      register values for "ryzen" preset has been set successfully (407 ms)
[2022-05-24 19:28:49.645]  randomx  init dataset algo rx/0 (24 threads) seed c258e69a83509a5c...
[2022-05-24 19:28:49.647]  randomx  allocated 2336 MB (2080+256) huge pages 100% 1168/1168 +JIT (1 ms)
[2022-05-24 19:28:51.504]  randomx  dataset ready (1857 ms)
[2022-05-24 19:28:51.504]  cpu      use profile  *  (16 threads) scratchpad 2048 KB
[2022-05-24 19:28:51.986]  cpu      READY threads 16/16 (16) huge pages 100% 16/16 memory 32768 KB (482 ms)
[2022-05-24 19:29:07.955]  net      new job from sanc1.biblepay.org:3002 diff 125006 algo rx/0 height 2630596
[2022-05-24 19:29:15.918]  cpu      accepted (1/0) diff 125006 (424 ms)
[2022-05-24 19:29:17.323]  cpu      accepted (2/0) diff 125006 (403 ms)
[2022-05-24 19:29:38.787]  cpu      accepted (3/0) diff 125006 (431 ms)
[2022-05-24 19:29:44.741]  cpu      accepted (4/0) diff 125006 (384 ms)
[2022-05-24 19:29:51.789]  miner    speed 10s/60s/15m 8360.0 n/a n/a H/s max 8370.2 H/s
[2022-05-24 19:29:56.676]  net      new job from sanc1.biblepay.org:3002 diff 323464 algo rx/0 height 2630597


Looking at https://sanc20914556214.cdn.biblepay.org:8443/gospel/viewer?type=xmrinquiry (https://sanc20914556214.cdn.biblepay.org:8443/gospel/viewer?type=xmrinquiry) and pasting my xmr adress i can see its mining just fine aswell.

I have not received any tBBP yet from the pool but i have not been mining long enough i believe.

(https://i.ibb.co/z4QNGKx/poolstats.jpg) (https://imgbb.com/)

All the pool drop down  menue looks good to me.  Pool Metrics, Leaderboard, Getting started looks to be working. I can see my tBBP wallet adress in the leaderboard.

Overall it feels just like foundation pool , navigation wise. One thing i noted is that in Block History there is no search window  for you to check up on your adress.

I will do an update tomorrow and see if i have gotten any payout on the testnet.

Hey bro Earlz,

Awesome testing man, thats great that we are close to have a functioning pool.

Yeah I see you in the leaderboard, and I see metrics looks pretty good in TestNet mode also.

I do see what you mean about Block History; its got no option to search.  I will fix this temporarily by making it show the last few days of block history on the screen (thats not working either) for now, and that will get us off the ground.  Later we can add a search bar when things settle down a little (Im still finding other things need ported for June release).  Ill try to have this fixed by tonight and make another post.

In the mean time, if you have time or whenever you are back, you can try testing BBP University final exam.  Its ported straight over from our unchained, so it should be very similar.  Also, you can test the scripture memorizer; again a straight port from unchained.

In the mean time, Im working on porting Add Proposal and List Proposals from the foundation web site over to the BMS.  That should technically allow us to retire Foundation after that.

On another side note I am porting NFTs back to be BiblePay native.  We had a couple conference calls, and everyone seems to like the idea of going back to BBP NFTs instead of ERC-721 NFTs.  Basically those Opensea nfts have problems:
- Low integrity (you cant hide one once its created, even if its got errors in it and its a mistake)
- If its an orphan, it lives forever, exposing the possibility of selling an expired NFT with an orphan (low integrity)
- The API doesnt allow the developer to work with Polygon NFTs, meaning that you have to 'hack' your site to make it work, and that hack is too much to bear.  I cant run a crypto site with a 'scraper' in it.  And ethereum nfts are way too expensive for gas.
- The SEO we gain from BBP NFTs, is very positive.
- The seedy marketplace on Opensea ties us to a lot of sin.
- No way to filter the marketplace for Christian items (just strange keywords that picks up 9000 mammon nfts with Christian ones) etc.

So anyway yeah it looks like we can go back to native NFTs; so Im trying to squeeze this in for the June release.



Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 25, 2022, 01:09:38 PM
** A couple more test cases and an update **

First regarding RandomX, I did deploy the latest code [for BMS] which includes the Block History.  Block history lets the miner see the results of each block and if they are getting paid (and the TXID of the payment).  So now, Earlz you can go to Block History and try to find your address and see if there is payment yet.  Things older than 24 hours should be paid by now.  We don't have 'search' yet but this should work for most cases.

Next, Governance:

I just ported List Proposals and Add New Proposal into BMS.
We could use your help in creating a TESTNET proposal, here:

https://globalcdn.biblepay.org:8443

Click on Testnet mode first, then click on Governance | Add Proposal.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on May 26, 2022, 06:49:14 AM
Afternoon.

Update on the RandomX mining on the testnet for the 209 sanc  , it has worked just fine, this mornin when i checked the testnet core wallet i see that i have indeed received a payout for tBBP.. 2 payouts so far.  first came in at 03:22 and the second at 11:24 , appears to be around 8 hours between the payouts.

Miner i have been using is Xmrig. 

I also checked out the block history and i can see my testnet adress there indeed, looking good, the grey template easy on the eyes.


Next up i  tested the Biblepay University: Scripture Memorizer. 

The font size is good, not to small. Works like i remember, grading and switching between modes works aswell.

Then i took a look at the Biblepay University course materials.
The course materials pdfs for module 1 and 2 all works for me to open, no errors there.

I like this Biblepay University feature beeing free, available, decentralized. Thumbs up on this one.



 

 
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 29, 2022, 12:39:43 PM
Afternoon.

Update on the RandomX mining on the testnet for the 209 sanc  , it has worked just fine, this mornin when i checked the testnet core wallet i see that i have indeed received a payout for tBBP.. 2 payouts so far.  first came in at 03:22 and the second at 11:24 , appears to be around 8 hours between the payouts.

Miner i have been using is Xmrig. 

I also checked out the block history and i can see my testnet adress there indeed, looking good, the grey template easy on the eyes.


Next up i  tested the Biblepay University: Scripture Memorizer. 

The font size is good, not to small. Works like i remember, grading and switching between modes works aswell.

Then i took a look at the Biblepay University course materials.
The course materials pdfs for module 1 and 2 all works for me to open, no errors there.

I like this Biblepay University feature beeing free, available, decentralized. Thumbs up on this one.


Hi Earlz,

Great testing man, thats awesome.  Im so glad RX mining is working in testnet now.  I got a payout too in testnet mode.
(I did test mining against prod in Debug mode and got a payout so it will probably work) but we should definitely test mining against prod before we go live.
10-4 on the memorizer, and the final exam - im glad those are out of the way for the time being also.

So I entered a proposal in TESTNET mode, and it went into the chain (I can see it in 'gobject list').  And I waited until the triggers formed, and I can see the trigger on it.  I also voted Yes on it by going to Proposals List in testnet and clicking Vote Yes, and it gave me a command that I pasted into the controller wallet, and that command worked.  Now let me check and see if I got the payment:
getrawtransaction fca8688b199051c16a5cee00f9618a595585b6d11d445336b2ecedad813af79b 1
Hey it worked, great.  See the payment for 100K?  Thats the testnet one.  Im glad Entering proposals works again for our users - they will be able to enter these from any BMS node now (since we have removed the add proposal page from the Sanc itself, for rebase reasons).  And, watchman on the wall works, and the payment emitted in the Monthly superblock.  PASS

Ive got a major release being pushed out now, this requires a new post and makes a lot of changes.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 29, 2022, 01:03:31 PM
Many things to talk about, I suppose lets go back to Biblepaycore first, to the actual Sanctuary software (BiblePay core testnet):
Could you all please upgrade your sancs to 0.17.2.3 :
This version POVS bans on the correct BMS port, and adds some sidechain features that BMS needs to operate, please do this first, then do a:
exec revivesanc sancname
To ensure you are not POSE banned.  Then continue.

BMS changes in this next release:
- Moved some of the sidechain code to biblepaycore c++.  This gives us a more solid foundation for the future (as far as syncing against chainlocks and leveraging LLMQ for sidechain).
- Refactored MYSQL backing to more efficiently work against the sidechain.  (This basically means we will eliminate polling and just apply database changes to blocks as they pass, and keep track of the tip as it changes).



So first a bit of configuration changes to BMS:
As of May 29th, I added some configuration changes to our BMS wiki installation guide, that adds some entries to the BMS.conf file, and some more entries to the Sanc testnet Config file , and some more entries to the Prod MainNet Sanc configuration file.

Please check out this document:
https://wiki.biblepay.org/Install_BMS

Look for "Phase II: Additional items", then add those items  to your bms.conf file and save it and exit nano.

Then add the Phase II items for the TestNet sanctuary biblepay.conf file (also located right after the bms changes in the doc).
Then save that and upgrade the sanc with the mandatory upgrade and restart it.
(Verify you are on 0.17.2.3).
Then restart BMS by clicking:  ctrl-c  TWICE, which gives you your command prompt back, then restart BMS (by typing
dotnet BiblePay.BMSD.dll)

Once it starts check your :
/BMS/Status page
See if you have two new fields:
Check mine out as an example:
https://globalcdn.biblepay.org:8443/BMS/Status
Look for the Block Count Main and Block Count Test.  Verify your Block Count Test is incrementing along with biblepay testnet.

Now the question is, what will all this do for your sanc?
This will give your sanctuary a database backing, which allows us to write the social media system on the sidechain.
Every block and transaction that passes is stored in mysql, and, more importantly sidechain transactions affect the Database views.

Once this is working then we can start to test NFTs.

Please let me know if your sanc syncs (it is not mandatory to configure the MainNet sanc settings yet, but I will configure them on my node so we can do some mainnet testing vs testnet before our go live so we dont have any surprises).

There are some things I need to explain regarding User Experience next.





Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on May 29, 2022, 01:12:15 PM
User experience Changes:

You can use my sanc as a place to start testing (and you can use your sanc also, as long as the TestNet Height in the Status page is synced up to the chain height and the rpc changes have been made).
From this site:

https://globalcdn.biblepay.org:8443/gospel/about


We used to have "one" web3 User record for both chains, with a chain field indicator on it, but as of today, I completely moved to the new Two chain model, where TESTNET is on an entirely different sidechain (IE on its own inside biblepaycore).  What this means is you probably lost some of your user settings.

So please change to TESTNET mode (again do it from my sanc),go to User Profile, and re-save your TESTNET nickname and Portfolio Builder BBP testnet address (and avatar).
Then switch to MAINNET, and do the same thing (since these are completely separate chains now).
I just want to have these established so we can have this ready for Portfolio Builder testing and for NFT testing.

Next you can sign your testnet Stake and test portfolio builder, see if the graph works, the Leaderboard works and your position appears?

Next you can try to buy one of the NFTs.  Be sure you have your email address saved on that chain, so that we can test Email Receipts.

Also, note the CHAIN your on when you buy your nfts:  Each chain is distinct, so Mainnet NFTs will be different that testnet NFTs.

Try to create an NFT also (with a picture chosen).

EDIT:
Regarding testnet NFTs, one of the critical tests is to verify the Ownership changes from last owner to new owner and the funds were transferred during the ownership change.

I have a few TestNet nfts created.  Lets try this, will someone buy one and paste the TXID here that you bought it on and the amount, so we can do a 'getrawtransaction txid 1' and look at it.
After one block passes, verify that that particular NFT is in your "My NFT list".  And then I will verify it is Not in my NFT list.  Also once you create a new nft, paste its name here so I can buy yours and see if it appears in my nft list and you can verify you receive the money.





Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on June 03, 2022, 01:33:59 PM
Evenin Brother Rob.

Quote
So I entered a proposal in TESTNET mode, and it went into the chain (I can see it in 'gobject list').  And I waited until the triggers formed, and I can see the trigger on it.  I also voted Yes on it by going to Proposals List in testnet and clicking Vote Yes, and it gave me a command that I pasted into the controller wallet, and that command worked.  Now let me check and see if I got the payment:
getrawtransaction fca8688b199051c16a5cee00f9618a595585b6d11d445336b2ecedad813af79b 1
Hey it worked, great.  See the payment for 100K?  Thats the testnet one.  Im glad Entering proposals works again for our users - they will be able to enter these from any BMS node now (since we have removed the add proposal page from the Sanc itself, for rebase reasons).  And, watchman on the wall works, and the payment emitted in the Monthly superblock.  PASS

I also tested to make a proposal in testnet. Sure enough i see it in the "list proposals" after a while. The url link i had set worked, no problems.
(https://i.ibb.co/Vx8mCCp/tprop.jpg) (https://ibb.co/qCw5ggF)
Also i tested to vote and got the RPC command to copy paste and got :
Code: [Select]
20:18:50
gobject vote-many cac48c26fbf806689882f1a3776e1fd8dd63ace0bef89d6f3d6bbd5f320215e2 funding yes


20:18:50
{
  "overall": "Voted successfully 1 time(s) and failed 0 time(s).",
  "detail": {
    "9eed011a5d22f453c40cc162d11f20002b829f8f665c88cdf55e07f38e80ce4b": {
      "result": "success"
    }
  }
}

and with the gobject list command i can see it in the rpc terminal aswell.

Code: [Select]
20:26:53
gobject list


20:26:53
{
  "cac48c26fbf806689882f1a3776e1fd8dd63ace0bef89d6f3d6bbd5f320215e2": {
    "DataHex": "5b5b2270726f706f73616c222c7b2273746172745f65706f6368223a313635343237363338312c22656e645f65706f6368223a313635343838313138312c226e616d65223a224561726c7a54657374303031222c227061796d656e745f61646472657373223a22795a4335644c6132754861474c414639774e595739645842793453767053774a4661222c227061796d656e745f616d6f756e74223a3737373737372c2274797065223a312c22657870656e736574797065223a2243686172697479222c2275726c223a2268747470733a2f2f666f72756d2e6269626c657061792e6f72672f696e6465782e7068703f746f7069633d3839322e3330227d5d5d",
    "DataString": "[[\"proposal\",{\"start_epoch\":1654276381,\"end_epoch\":1654881181,\"name\":\"EarlzTest001\",\"payment_address\":\"yZC5dLa2uHaGLAF9wNYW9dXBy4SvpSwJFa\",\"payment_amount\":777777,\"type\":1,\"expensetype\":\"Charity\",\"url\":\"https://forum.biblepay.org/index.php?topic=892.30\"}]]",
    "Hash": "cac48c26fbf806689882f1a3776e1fd8dd63ace0bef89d6f3d6bbd5f320215e2",
    "CollateralHash": "b34f28f612eb47c3b97f7538a1d4e3d8791297685006789711de612fa4e202a0",
    "ObjectType": 1,
    "CreationTime": 1654279900,
    "AbsoluteYesCount": 1,
    "YesCount": 1,
    "NoCount": 0,
    "AbstainCount": 0,
    "fBlockchainValidity": true,
    "IsValidReason": "",
    "fCachedValid": true,
    "fCachedFunding": true,
    "fCachedDelete": false,
    "fCachedEndorsed": false
  }
}

Next i did the portfolio builder settings on the testnet,  setting up the portfolio builder adress and signed the stakes in the core wallet. The email adress aswell.

I successfully sent 2 portfolio stakes, although i dont think the leaderboard on testnet is showing the correct values for me.  Correction i see the leaderboard has updated and shows the correct values for me. So that checks out.


Next i bought your NFT the "big kitty" 
Code: [Select]
You have successfully purchased this NFT on TXID e150bb0c76eb673ed1b96f10df795b54d892de65841ec63432a8b7331e7190ba.


In the wallet balance i had 10 000tBBP  now i see that it has changed to  9996.67 tBBP but i saw that you had put it up for 5555 tBBP.
Still i can see the NFT in  My NFTs page, so that works.


I ran the getrawtransaction command and got:

Code: [Select]
21:55:09
getrawtransaction e150bb0c76eb673ed1b96f10df795b54d892de65841ec63432a8b7331e7190ba 1


21:55:09
{
  "txid": "e150bb0c76eb673ed1b96f10df795b54d892de65841ec63432a8b7331e7190ba",
  "version": 1,
  "type": 0,
  "size": 244,
  "locktime": 0,
  "vin": [
    {
      "txid": "86584ea4d831ebb19b10d4d5fa0295a077c99ded9ce655135b22941488319625",
      "vout": 1,
      "scriptSig": {
        "asm": "30440220170e8427856c3ade6efd573ea18f54ae4d019aae277080c9ec0a4696fa2ef78d0220745c9f42c84cf7ce1ff70f21a2deac9527dbd4c7352ee484bb440acce52c5a36[ALL] 0211305574a8f9d059a86e91fe8d71ad449658632acc9d5494b6d4796e34bee92f",
        "hex": "4730440220170e8427856c3ade6efd573ea18f54ae4d019aae277080c9ec0a4696fa2ef78d0220745c9f42c84cf7ce1ff70f21a2deac9527dbd4c7352ee484bb440acce52c5a3601210211305574a8f9d059a86e91fe8d71ad449658632acc9d5494b6d4796e34bee92f"
      },
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "value": 9996.67490918,
      "valueSat": 999667490918,
      "n": 0,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 5a616cdd995daa7ea61671dbd7a63db3e982abe3 OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "76a9145a616cdd995daa7ea61671dbd7a63db3e982abe388ac",
        "reqSigs": 1,
        "type": "pubkeyhash",
        "addresses": [
          "yUZLNhASGdT6PrY4Ypfv4FySAd1fjLifaj"
        ]
      },
      "txoutmessage": "<XML>BuyNFT</XML>"
    },
    {
      "value": 2.00003082,
      "valueSat": 200003082,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 0000000000000000000000000000000000000000 OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "76a914000000000000000000000000000000000000000088ac",
        "reqSigs": 1,
        "type": "pubkeyhash",
        "addresses": [
          "yLKSrCjLQFsfVgX8RjdctZ797d54atPjnV"
        ]
      },
      "txoutmessage": ""
    }
  ],
  "hex": "0100000001259631881494225b1355e69ced9dc977a09502fad5d4109bb1eb31d8a44e5886010000006a4730440220170e8427856c3ade6efd573ea18f54ae4d019aae277080c9ec0a4696fa2ef78d0220745c9f42c84cf7ce1ff70f21a2deac9527dbd4c7352ee484bb440acce52c5a3601210211305574a8f9d059a86e91fe8d71ad449658632acc9d5494b6d4796e34bee92fffffffff026660d3c0e80000001976a9145a616cdd995daa7ea61671dbd7a63db3e982abe388ac113c584d4c3e4275794e46543c2f584d4c3e0aceeb0b000000001976a914000000000000000000000000000000000000000088ac0000000000",
  "blockhash": "97a4f66c25449726aea0c8f760b93346512c6e846bc622d3c3fd9f227edda8a2",
  "height": 149831,
  "confirmations": 1,
  "time": 1654285539,
  "blocktime": 1654285539,
  "instantlock": true,
  "instantlock_internal": true,
  "chainlock": true
}

This is all i have for now, i will do some more testing in the coming days.
Have a good one.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on June 03, 2022, 07:09:21 PM
Evenin Brother Rob.

I also tested to make a proposal in testnet. Sure enough i see it in the "list proposals" after a while. The url link i had set worked, no problems.
(https://i.ibb.co/Vx8mCCp/tprop.jpg) (https://ibb.co/qCw5ggF)
Also i tested to vote and got the RPC command to copy paste and got :
Code: [Select]
20:18:50
gobject vote-many cac48c26fbf806689882f1a3776e1fd8dd63ace0bef89d6f3d6bbd5f320215e2 funding yes

Hi bro Earlz:
On the proposal, thats great.  I voted yes on it just now too, from 2 sancs.

I will take a look at the rest of this asap.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on June 03, 2022, 08:39:23 PM

Next i did the portfolio builder settings on the testnet,  setting up the portfolio builder adress and signed the stakes in the core wallet. The email adress aswell.

I successfully sent 2 portfolio stakes, although i dont think the leaderboard on testnet is showing the correct values for me.  Correction i see the leaderboard has updated and shows the correct values for me. So that checks out.


Next i bought your NFT the "big kitty" 
Code: [Select]
You have successfully purchased this NFT on TXID e150bb0c76eb673ed1b96f10df795b54d892de65841ec63432a8b7331e7190ba.


In the wallet balance i had 10 000tBBP  now i see that it has changed to  9996.67 tBBP but i saw that you had put it up for 5555 tBBP.


Still i can see the NFT in  My NFTs page, so that works.


I ran the getrawtransaction command and got:

Code: [Select]
21:55:09
getrawtransaction e150bb0c76eb673ed1b96f10df795b54d892de65841ec63432a8b7331e7190ba 1


}

This is all i have for now, i will do some more testing in the coming days.
Have a good one.

Hi Earlz,
I got a chance to look into the NFT you bought.  One thats good you bought the cat, but there was a problem with the tx.
It didnt transfer to me the right amount (I think it sent me 2bbp).
So I was able to debug the problem - the issue is it was using the wrong amount during the Buy operation - I see the problem; fixed.
Code is redeployed.
I just bought an nft in testnet from my VMs metamask, and it did transfer the right amount this time; could you please edit the nft you bought with the cat and make it marketable again?  Then I can try buying it from you.

On PB, thats good you can see them now, I assume that part is working.
I will be working on adding native support for BTC & Doge & Dash next, so we dont have to wrap those coins.


If you want to buy another NFT, I also added the purchase price to the XML info inside the tx.  (We still need to implement Reserve auctions) right now we have Buy It Now only.
I need to recaption "Sponsor Me Now" instead of Buy It Now for orphans.


Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on June 06, 2022, 03:09:56 AM
Mornin.

I edited the cat NFT , changed price, changed description a little and put it back up in the market place.
Looks like it worked.

Code: [Select]
Successfully submitted this NFT on TXID cad0dbc94c2e0bf038e3323c72fecb6bc0a1f334ac0e3295a90779dfbd868a4b.

Thank you for using BiblePay Non Fungible Tokens.

NOTE: Please wait for one sidechain block to pass before you can view the NFT.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on June 10, 2022, 07:51:46 PM
Mornin.

I edited the cat NFT , changed price, changed description a little and put it back up in the market place.
Looks like it worked.

Code: [Select]
Successfully submitted this NFT on TXID cad0dbc94c2e0bf038e3323c72fecb6bc0a1f334ac0e3295a90779dfbd868a4b.

Thank you for using BiblePay Non Fungible Tokens.

NOTE: Please wait for one sidechain block to pass before you can view the NFT.

Hi Earlz,

So it looks like some of our nfts are being d-dos attacked (I can see a 70GB attack on NFT images and profile pictures). So what I did next is added some code that stores new NFT files a different way which should prevent the d-dos, however these need recreated in order for it to work.  So after I bought the cat I deleted it.

I reentered a new testnet anti-ddos nft if you want to buy it now.
Just verify your balance decreases and let me know when you put it back up for sale.

Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on June 10, 2022, 07:56:38 PM
So I'm shooting for a June 30 go-live for Exodus so I am trying to work out any last minute kinks.  One thing I changed that is not deployed yet (we can get it in the mainnet release) is for ROI purposes, I set it up so any Sanctuary owner may run up to 5 sanctuaries per 1 BMS.
The way this works is we require your Sanc port to be 40000, 10001, 10002 , 10003 or 10004.  This way you can effectively spread your VM cost over up to 5 sancs for good ROI when we go live.

Let me take a look at the OP post and Ill send out the last of the test cases.
From what I can see, things look pretty good for go live:
The RandomX mining is working
The daily portfolio builder contract is paying
The turnkey sanc feature appears to be working (Budinga and Rob have one in testnet) , Earlz feel free to test that, to test that just go to Turnkey Sancs and create a new one with tBBP in testnet mode.  Then fund it.
The video streaming appears to be working.
NFTs appear to be working.  Todd created an orphan NFT in testnet.

On a side note, you may notice that your BMS UI menu does not show "portfolio builder" or "NFT"; this happens when your sanc has less than 1 MM bbp in it.
The reason for this is we need the sanc to have a high balance in order to do the NFT operations for the user (it cuts the risk of any nefarious attack vectors by someone with no investment).  Once your balance is > 1MM, your menu will look like globalcdn.biblepay.org.  (Except for the pool.  In order to have the pool show up the config settings for the pool need populated).


Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on June 18, 2022, 10:34:38 AM
Thanks to everyone who helped in testnet.

Earlz what is your mainnet receive address so I can send you a reward?

Title: Re: June 2022 - TestNet Release - Exodus
Post by: earlzmoade on June 18, 2022, 11:33:57 AM
Thanks to everyone who helped in testnet.

Earlz what is your mainnet receive address so I can send you a reward?


Evenin brother Rob.

my mainnet adress is:
Code: [Select]
BBFfgmZhTdNXPYzk7hZnYA9j27mCSZVYB1
I hope this next biblepay release will  propel biblepay to a bright future.
Thanks for having me man.
Title: Re: June 2022 - TestNet Release - Exodus
Post by: Rob Andrews on June 18, 2022, 11:59:06 AM

Evenin brother Rob.

my mainnet adress is:
Code: [Select]
BBFfgmZhTdNXPYzk7hZnYA9j27mCSZVYB1
I hope this next biblepay release will  propel biblepay to a bright future.
Thanks for having me man.

Thanks Earlz, sent you 5MM.