Bible Pay

Read 118776 times

  • Rob Andrews
  • Administrator

    • 4147


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
February 2021 Testnet Thread (Tribulation)
« on: January 05, 2021, 10:44:40 AM »
February 2021 Release - (Tribulation)



Welcome to the Biblepay February 2021 Testnet Testing thread for the Tribulation release!


In this thread we will be testing:

- User Record:
     Verify the user can store their RSA keypair, long/lat pair, POP3 preferences
     (TESTED: PASS)

- P2P Chat and General Chat:
     Verify the Encrypted and non Encrypted Chat Features work
     (Tested Encrypted Chat user to user:  PASS)
     (Still need to test General Chat room and more user to user chat)


- POP3 and SMTP Decentralized Email:
     Verify the Network works as a pop3 server (mail from the network to your e-mail client)
     Verify the Network works as an SMTP server (mail from your e-mail client to the network)
     Verify functionality - sending encrypted and non encrypted e-mails, receiving emails, and attachments
     Verify the SMTP fees and propagation behavior and backfill
     ToDo:  Mini User Guide to explain how to set network settings and actually use the Decentralized E-mail feature.
     (Test Send email through BBP:  PASS  -  tested charges plus attachments and cc and bcc and multiple recipients)
    (Test Receive email from BBP:  PASS)
    (Test encrypted EMAIL:  NOT TESTED )
   
- DAC:
     Verify you can report on the Dac Engine:
     We need to test listdacdonations
     Verify you can make an anonymous gift to the DAC:  PASS
     Verify the DAC allocates the gift properly to the charities and or to the children:  PASS (We allocated 76% + 24% to two voted in recipients) and we tested 'exec dacengine'
     
- TxOutsetInfo:
     Verify actual money supply, and outstanding DWS effect shows the exact money supply

- UTXO Mining:
    Verify you can be paid for UTXO mining
    Verify the integrity of a BBP UTXO stake, and the integrity of a foreign UTXO stake

- XSPORK-ORPHAN and XSPORK-CHARITY:
     Verify the Sancs can vote in an orphan or a charity
     Verify the orphan list and the charity list

-  UTXO Staking from UI
     Verify you can stake a UTXO from the UI, or from 'utxostake'

- RPC commands
     Verify 'exec give'
 

- BIBLEPAY University 1.0
    - Verify Course Material links brings you to each course in Module 1
    - Verify Final exam material for each course
    - Verify Exam room works properly




Additional Wiki guides:
UTXO:  https://wiki.biblepay.org/UTXO_Mining
DAC: https://wiki.biblepay.org/Decentralized_Autonomous_Charity
POP3: https://wiki.biblepay.org/Decentralized_Email







Explain Important Changes to Entire BiblePay Network:


For those following us this is easier to understand nevertheless the intended changes starting at Tribulation_Height are:

- DWS will temporarily stay enabled for existing payments only (but will be disabled for new stakes) until all old stakes are paid.  This is so we can promote UTXO mining instead.
- UTXO mining is more efficient than DWS.  With UTXO mining you can be rewarded the coinbase mining block reward when you add a new UTXO stake, and, additionally you can receive a perpetual reward in the UTXO leaderboard (daily).
- DashStake will be disabled, but, you may re-stake the dash stakes as UTXO stakes.
- BiblePay will support more crypto-currency partners for UTXO mining!  For example, at the cutover height you can stake BBP, or BBP+Dash, or BBP+BTC.  Once successful, we plan on voting more pairs in!
- UTXO mining appeals to 17 million Dash addresses, and 450 million unique Bitcoin addresses, giving us a large potential new user base!
- RandomX merge mining is still fully implemented for block security.  Since we are merge mined, no one can come in and "buy" BBP with hashpower.
- For all the blocks that are Not new UTXO transactions, our RX miners still get the subsidy!  The UTXO subsidy only goes to new staked UTXOs as a reward to bring popularity to our network from other (foreign UTXOs) - IE newbies.
- When you stake BBP only, you receive approx. half the reward.  When you stake BBP+DASH or BBP+BTC, you receive up to double the reward.  The reward is based on the lower of the two values * 2.  For example, if you stake $200 of BBP combined with $150 of Dash, your UTXO is valued at $150 * 2 = $300.   If you stake $200 of BBP alone, the UTXO is valued at $200.  If you stake $150 of BBP + $200 of bitcoin, the stake is valued at $150 * 2 = $300.00.
- We will hold a sanctuary vote for the efficacy of UTXO mining vs. PODC for the coinbase reward.  This vote will suggest that UTXO mining is phased in and PODC phased out.
- Depending on the outcome, the PODC campaign percentage will be decreased first by half (to allow UTXO mining to start) then in decrements of 25% per month until PODC is phased out and UTXO is phased in.  All PODC miners can transition into making UTXO positions to receive new rewards in the UTXO model effective when PODC is disabled (sourced from UTXO mining).




*** What still needs done in this version before released to prod ***

- Reporting the DAC metrics:  Show the sponsored children, the totals, the audit data you would normally find in 'accountability.biblepay.org'
(this decentralized accountability)
- Reporting of the accountability Historical data.  This would make our history available so a user does not need both prior web history + blockchain data to see our giving history.
- Test BITCOIN staking
- Make sure this release is user friendly from the UI
- Ensure we have the wiki guides ready




Starting Version:    1.5.3.2+


(Please ensure your version is greater than this, otherwise your testnet branch will not sync. 

We are at block  ____58050 (hash 936794dadbbeba1625e1410f9a2e9a44645b6c0ee70678337d385f834077b999)_____ as of January 8th, 2021).


Testnet Download Links:


Ready:
     Windows 64-bit:      https://biblepay.org/biblepayevo64develop.exe
Not Ready:
     MacOS QT: https://biblepay.org/biblepaycore-evo-testnet.dmg
     Linux 64 bits II (QT/biblepayd/biblepay-cli) zip:  https://biblepay.org/bbp-lin-develop-64.zip


To self compile:
https://github.com/biblepay/biblepay/blob/develop/BuildBiblePay.txt





CONFIGURING FOR TESTNET:


Create a biblepaytest.conf file with the following contents:
testnet=1
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: This version will also work side-by-side our production nodes,
so, you also have the option if you are short on machines, to run TestNet side by side a prod node!

To run a TestNet Sanctuary:
https://forum.biblepay.org/index.php?topic=391.msg5968#msg5968

How to create a deterministic sanc from scratch:
https://docs.dash.org/en/stable/masternodes/dip3-upgrade.html

__________________________________________________________________________________________________________________________________________________________________________________________




« Last Edit: March 19, 2021, 10:37:45 AM by Rob Andrews »


  • earlzmoade
  • Super Developer

    • 311


    • 48
    • August 02, 2018, 03:22:01 AM
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #1 on: January 08, 2021, 04:05:55 AM »
Hey Rob.

Seems my testnet wallet wont sync, do you have a node i can add manually?

Im running version 1.5.3.2
Joshua 1:9
Have i not commanded you?
Be strong and courageous. Do not be afraid;
do not be discouraged, for the Lord your God
will be with you wherever you go.


  • Rob Andrews
  • Administrator

    • 4147


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #2 on: January 08, 2021, 06:24:59 AM »
Hey Rob.

Seems my testnet wallet wont sync, do you have a node i can add manually?

Im running version 1.5.3.2

Hi Earlz, welcome aboard and thanks for testing.

Oops, I upgraded my 3 nodes and forgot to start them, no wonder.

Ok they are up now and one of them is a sanc so your node should find it now.

If not here is the address:
addnode 45.76.62.90 add

Its at block 58071.



One thing I think we definitely need to test is pop3 email- I will try to explain how to set up the 'pop 3 client'.

But first, we all need to have a user record.

Once synced, please go into User Record ( we need QT to do that ), then enter your nickname, then click the checkbox to allow bbp to spend pop3 money automatically, then click Save.  Then wait 3 blocks.  Then check it again and be sure it is populated by going back to the user edit page. 


« Last Edit: January 08, 2021, 06:27:44 AM by Rob Andrews »


  • MIP
  • Sr. Member

    • 368


    • 47
    • February 13, 2018, 11:55:52 AM
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #3 on: January 08, 2021, 01:28:48 PM »
I will compile the MacOS version now, and will test using this OS so maybe it helps us find some hidden issues.


  • MIP
  • Sr. Member

    • 368


    • 47
    • February 13, 2018, 11:55:52 AM
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #4 on: January 08, 2021, 03:05:33 PM »
MacOS testnet version is here

https://biblepay.org/biblepaycore-evo-testnet.dmg

For me it required sudoer/root privileges, otherwise I get a Permission denied error when launching.

It is syncing now, it seems to connect fine to peers.

Rob, what do you want us to test here first?


  • Rob Andrews
  • Administrator

    • 4147


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #5 on: January 08, 2021, 06:25:54 PM »
MacOS testnet version is here

https://biblepay.org/biblepaycore-evo-testnet.dmg

For me it required sudoer/root privileges, otherwise I get a Permission denied error when launching.

It is syncing now, it seems to connect fine to peers.

Rob, what do you want us to test here first?

Thanks for the Mac release MIP!

Could you please check the smtp.c class to see why it possibly requires root privileges to start on mac (and prob on linux too)?
(Its trying to listen on 111 and 26 for the pop3/smtp mail).

Let me see if I can get a test procedure ready.



  • earlzmoade
  • Super Developer

    • 311


    • 48
    • August 02, 2018, 03:22:01 AM
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #6 on: January 09, 2021, 04:27:01 AM »
Update from me.
So i have wallet up and running its synced mining some blocks. 

Went into user records and  wrote in a user name. Checked the box for  "allow biblepay to charge me for pop3 and smtp forwarding"    and then  i clicked save .

Its now been 4 blocks later but still nothing changed in the user records, checked the transactions and i see the  keypair association there  and it says 0/offline  still has not been succesfully sent. 

I will wait abit see if it will come up as "ok".
Joshua 1:9
Have i not commanded you?
Be strong and courageous. Do not be afraid;
do not be discouraged, for the Lord your God
will be with you wherever you go.


  • earlzmoade
  • Super Developer

    • 311


    • 48
    • August 02, 2018, 03:22:01 AM
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #7 on: January 09, 2021, 05:49:14 AM »
Update from me.
So i have wallet up and running its synced mining some blocks. 

Went into user records and  wrote in a user name. Checked the box for  "allow biblepay to charge me for pop3 and smtp forwarding"    and then  i clicked save .

Its now been 4 blocks later but still nothing changed in the user records, checked the transactions and i see the  keypair association there  and it says 0/offline  still has not been succesfully sent. 

I will wait abit see if it will come up as "ok".


So its been few hours now and it still says unconfirmed on the keypair association.
Perhaps i have to do something else, any ideas Rob/MIP?
Joshua 1:9
Have i not commanded you?
Be strong and courageous. Do not be afraid;
do not be discouraged, for the Lord your God
will be with you wherever you go.


  • Rob Andrews
  • Administrator

    • 4147


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #8 on: January 09, 2021, 08:58:46 AM »

So its been few hours now and it still says unconfirmed on the keypair association.
Perhaps i have to do something else, any ideas Rob/MIP?

Hmm, lets verify a few things.  Could you please delete ~/.biblepay/testnet3/debug.log and restart the client (this is just to get the log empty so we can easily see any error messages in it).

Then first verify that Tools | Info shows you on 1.5.3.2.  (This just verified current version is the one with the feature).   Then also, that you are on block 58307 or higher as I see we are mining-- so your tx's out should be going out.

Also check if your wallet is unlocked if it is encrypted before you click Send.  But technically that should throw an error message if it wasnt the case.

So now then please go into the user record again and just populate nickname and ensure the checkbox for 'pop3 fees' is checked then click Save again and see if it says an Error - or if not if it was successful, it should show the txid.

Then we will just have to see if for some reason that tx stays offline again.  You can then grep the log (or simply open the log on windows) and see around where the timestamp that you sent the tx out, see if there is any strange error.

You can also send me some BBP:
ycd5NdyC8KXT8kLuzwPt744WTKurJkVZyY

And Ill let you know if I get it just to know the chain is advancing.

Thanks and good luck.

« Last Edit: January 09, 2021, 09:07:30 AM by Rob Andrews »


  • Rob Andrews
  • Administrator

    • 4147


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #9 on: January 09, 2021, 09:05:17 AM »
Thanks for the Mac release MIP!

Could you please check the smtp.c class to see why it possibly requires root privileges to start on mac (and prob on linux too)?
(Its trying to listen on 111 and 26 for the pop3/smtp mail).

Let me see if I can get a test procedure ready.

So as far as testing e-mails, could we first verify Earlz, Rob and MIP have their user record working?
Mine is "[email protected]" for my internal email addess and my  nickname is currently "foundation" (simply because my dev testnet box is the testnet foundation).
Let me know when you guys confirm you have a nickname that actually saved and persisted.

Then we can go on to testing the setup of an e-mail client:
POP3: https://wiki.biblepay.org/Decentralized_Email

See the 'Set Up' section.  For me, Im using outlook on my windows box, connecting to my linux IP (where my biblepaycore is running in an instance of ubuntu 18).  So for my mail settings, I have my pop3 server as my LAN address for my biblepaycore testnet node.  But most of you will probably be 127.0.0.1 (localhost) if you are running biblepay on the same machine as the mail client).

Once that is set up, if Im not currently on the machine here, you can still send yourself a test e-mail by doing this (once you know your internal e-mail address):
With biblepay running, and outlook or firebird for example running, go to the New biblepay mailbox in the mail client, and click New Mail.  Make sure the From address is from "[email protected]" (that should be the default).  Then send an e-mail to yourself to [email protected].  On my machine for example, it goes out immediately through biblepay and charges me 500-700 bbp or so, then it delivers the mail back into my outlook to me to read it.



  • MIP
  • Sr. Member

    • 368


    • 47
    • February 13, 2018, 11:55:52 AM
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #10 on: January 09, 2021, 11:30:35 AM »
Thanks for the Mac release MIP!

Could you please check the smtp.c class to see why it possibly requires root privileges to start on mac (and prob on linux too)?
(Its trying to listen on 111 and 26 for the pop3/smtp mail).

Let me see if I can get a test procedure ready.

Thanks Rob. I think the error comes from the fact that in Unix systems, TCP ports under 1024 are considered privileged.

Please send me some tBBP here
yebvkyE23rMYa9YLkT5s1YK7QBedFHWJSK

so I can create the user record transaction.
Thanks!


  • earlzmoade
  • Super Developer

    • 311


    • 48
    • August 02, 2018, 03:22:01 AM
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #11 on: January 09, 2021, 11:48:23 AM »
So i tried windows version on another pc aswell , both machines sync up to the blockchain , but neither one seems to be able to get  user record/nickname.

Also i tried send you some tbbp  Rob and also i tried send some to MIP and i dont seem to be able to send tbbp on either machines.
Hmm seems strange indeed.
Joshua 1:9
Have i not commanded you?
Be strong and courageous. Do not be afraid;
do not be discouraged, for the Lord your God
will be with you wherever you go.


  • MIP
  • Sr. Member

    • 368


    • 47
    • February 13, 2018, 11:55:52 AM
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #12 on: January 09, 2021, 01:01:23 PM »
So i tried windows version on another pc aswell , both machines sync up to the blockchain , but neither one seems to be able to get  user record/nickname.

Also i tried send you some tbbp  Rob and also i tried send some to MIP and i dont seem to be able to send tbbp on either machines.
Hmm seems strange indeed.

I didn't see anything coming in yet... I see this in case it helps

Code: [Select]
10:58:43

getinfo


10:58:43

{
  "version": 1050302,
  "protocolversion": 70762,
  "walletversion": 61000,
  "balance": 0.00000000,
  "privatesend_balance": 0.00000000,
  "blocks": 58344,
  "timeoffset": 0,
  "connections": 3,
  "proxy": "",
  "difficulty": 0.0004434659641608206,
  "testnet": true,
  "keypoololdest": 1597656144,
  "keypoolsize": 999,
  "paytxfee": 0.00000000,
  "relayfee": 0.01000000,
  "errors": ""
}

and
Code: [Select]

getblockhash 58344

985c1dbfdf17c6edb94ed61802a0970028922733a7dcda530c2fdffb04898373

I have these 2 peers
"addr": "149.28.249.117:40001",
"addr": "45.76.62.90:40001"


  • Rob Andrews
  • Administrator

    • 4147


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #13 on: January 09, 2021, 06:16:17 PM »
I didn't see anything coming in yet... I see this in case it helps

Code: [Select]
10:58:43

getinfo


10:58:43

{
  "version": 1050302,
  "protocolversion": 70762,
  "walletversion": 61000,
  "balance": 0.00000000,
  "privatesend_balance": 0.00000000,
  "blocks": 58344,
  "timeoffset": 0,
  "connections": 3,
  "proxy": "",
  "difficulty": 0.0004434659641608206,
  "testnet": true,
  "keypoololdest": 1597656144,
  "keypoolsize": 999,
  "paytxfee": 0.00000000,
  "relayfee": 0.01000000,
  "errors": ""
}

and
Code: [Select]

getblockhash 58344

985c1dbfdf17c6edb94ed61802a0970028922733a7dcda530c2fdffb04898373

I have these 2 peers
"addr": "149.28.249.117:40001",
"addr": "45.76.62.90:40001"

Sent you 4MM.

10-4 on those privileged ports, yes, you just reminded me of that (I remember knowing that a long time ago when we had a Unix systems admin there and I had to work much more closely with him back then).  Ill look into changing those soon to the upper range.

Lets see if you can create a user record now.



  • Rob Andrews
  • Administrator

    • 4147


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: February 2021 Testnet Thread (Tribulation)
« Reply #14 on: January 09, 2021, 06:17:29 PM »
So i tried windows version on another pc aswell , both machines sync up to the blockchain , but neither one seems to be able to get  user record/nickname.

Also i tried send you some tbbp  Rob and also i tried send some to MIP and i dont seem to be able to send tbbp on either machines.
Hmm seems strange indeed.

Depressing yes, can you please paste your 'getinfo' and your blockhash for 58387? (getblockhash 58387)

Thanks!