Bible Pay

Read 28640 times

  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #120 on: December 19, 2018, 01:31:50 PM »

I believe you have a point, good find on the old txid, thanks.


Let me do some testing and ensure we are using the correct difficulty in the best block as compared to the inductor.

Ok, I found this was a bug in the wallet.  We quote the current diff params to the user, but during block checking we should have been checking the prior block - not the current block - OK this is fixed in the next version.




  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #121 on: December 19, 2018, 01:36:48 PM »
New version is building.... Should be out tonight.

Massive changes, please hold off on testing.



  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #122 on: December 19, 2018, 11:43:07 PM »
1.1.7.0 - Mandatory Upgrade for TestNet


- Add groundwork for future BiblePay chat room (testnet) and first native bitcoin chat protocol (and call a Priest)
- Add ability for web supporter sites to add proposals, and add in the ExpenseType field (allowing web sites to add proposals with expense types)
- Fix exec pogpool to respect height (exec pogpool height)
- Fix transactionlist UI display bug showing mining payments as POG payments (also fix PODC payments that should be mining payments)
- Update exec titheinfo to show proper ROI, daily miner rewards, and daily tithe cap
- Alter Tithe Cap in testnet and prod (prod is disabled) to be accurate (this is 50K per day, with 100K mining payments) - this means TestNet should disregard all old blocks before 90,000 and start new tests going forward
- Assess block difficulty params in IsTitheLegal using the previous block, but quote diff params for current best block (fixes the Illegal Tithes issues)


 


  • MIP
  • Developer

    • 238


    • 27
    • February 13, 2018, 11:55:52 AM
    more
Re: Testnet - Test Proof of Giving
« Reply #123 on: December 20, 2018, 04:12:04 AM »
1.1.7.0 - Mandatory Upgrade for TestNet



MacOS testnet version ready, Ubuntu PPAs building now.


  • mint
  • Newbie

    • 18


    • 0
    • December 10, 2018, 10:19:06 AM
    more
Re: Testnet - Test Proof of Giving
« Reply #124 on: December 20, 2018, 07:47:52 AM »
Thanks for the example.  On a side note we have a feature in the next version that will allow you to type exec pogpool height, and diagnose some of this , although that feature is broken right now in your version.  But anyway looking at your wallet and its rewards, you received the first POG reward on block 91097 for 97.09 bbp. 

So here is what happened:  Those two pog rewards are incorrectly listed as POG reward on the UI.  They are actually mining rewards.  If you look at the actual transaction, the 97.09 was the reaper reward for solving the block .

So I see the bug, and its being fixed now (as far as the display issue).  Please double check in the next version that we killed it - those two should change to Mining rewards when you boot the next version.

They are Mining rewards as they should be. Still wondering reward of 97.09 which 2 % of total. Is this correct. I have not donated from this wallet at all.


  • klondike
  • Full Member

    • 190


    • -10
    • October 10, 2017, 09:00:24 AM
    more
Re: Testnet - Test Proof of Giving
« Reply #125 on: December 20, 2018, 09:17:44 AM »
setgenerate true doesnt working in testnet wallet btw


  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #126 on: December 20, 2018, 11:13:21 AM »
They are Mining rewards as they should be. Still wondering reward of 97.09 which 2 % of total. Is this correct. I have not donated from this wallet at all.

Great!  I'm glad these two UI decriptions changed over to Mining Reward from POG reward.

On the amount of 97.09, that is the correct reaper reward for that block: 20% of the heat mining reward (after Sanc was paid) is only 97.09.  (Sanc gets 4500 or so, 20% of the roughly 450 heat mining reward is 97.09).



  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #127 on: December 20, 2018, 11:14:20 AM »
setgenerate true doesnt working in testnet wallet btw

It still works; when I do 'setgenerate false', I can see in 'getmininginfo' the hashcounter stops.  So it appears we didnt break the existing genproclimit or setgenerate for POBH.


  • klondike
  • Full Member

    • 190


    • -10
    • October 10, 2017, 09:00:24 AM
    more
Re: Testnet - Test Proof of Giving
« Reply #128 on: December 20, 2018, 01:51:24 PM »
when i set SETGENERATE TRUE 12 my cpu didnt overload, still 2%


  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #129 on: December 20, 2018, 01:56:26 PM »
when i set SETGENERATE TRUE 12 my cpu didnt overload, still 2%

Try minersleep=0, and see if it overloads?

EDIT: default is 325ms


  • klondike
  • Full Member

    • 190


    • -10
    • October 10, 2017, 09:00:24 AM
    more
Re: Testnet - Test Proof of Giving
« Reply #130 on: December 20, 2018, 02:47:54 PM »
Rob ... working thanks  ;D


  • thesnat21
  • Administrator

    • 164


    • 15
    • March 28, 2018, 06:37:05 PM
    more
Re: Testnet - Test Proof of Giving
« Reply #131 on: December 21, 2018, 05:30:02 AM »
Woke up this AM wallet was closed..
heres debug log
Code: [Select]


2018-12-21 06:35:10

ProcessBlockFound::Generated 4782.6984526
2018-12-21 06:35:10 ERROR: ProcessBlockFound -- generated block is stale
2018-12-21 06:35:13 UpdateTip: new best=ce85f07771c8b26df128b557e4f7131e9ce2dbfa91efae999125bc8fb2118ba1  height=93330  log2_work=44.351064  tx=100651  date=2018-12-21 06:35:10 progress=1.000000  cache=0.4MiB(1254tx)
2018-12-21 06:35:13 ProcessNewBlock : ACCEPTED
2018-12-21 06:35:35 Misbehaving: 172.245.93.118:51750 (0 -> 14)
2018-12-21 06:36:29  CreateTransaction::Requiring specific coin age 12.170000 and coin amount 5070 keypool added key 2059, size=1001
2018-12-21 06:36:29 init message: Loading wallet... (205.69 %)
2018-12-21 06:36:30 CommitTransaction:
CTransaction(hash=7d61ef23c0, ver=1, vin.size=1, vout.size=2, nLockTime=93330)
    CTxIn(COutPoint(9e51b8c060d9625be5107b9c1499c05a0583902c0c36ceaafec34f4396446337, 1), scriptSig=47304402205bdc80eb721dfb, nSequence=4294967294)
    CTxOut(nValue=215.10000000, scriptPubKey=76a9149cff090c148949e19f4ed915)
    CTxOut(nValue=4864.05072207, scriptPubKey=76a91454ec8b20a625794e64a8d94e)
2018-12-21 06:36:30 committing Tx with message <TITHER>yaSJ9FdsPcQvGjyrzxVFUPjg6wkJBQwaxc</TITHER><NICKNAME>thesnat1</NICKNAME><TITHESIGNER>yaSJ9FdsPcQvGjyrzxVFUPjg6wkJBQwaxc</TITHESIGNER>

2018-12-21 06:36:30 keypool keep 1059
2018-12-21 06:36:30 AddToWallet 7d61ef23c0c5e35b95f0027666ab565636d9d28ef04a3994b4b5aa175717948c  new
2018-12-21 06:36:30 AddToWallet 7d61ef23c0c5e35b95f0027666ab565636d9d28ef04a3994b4b5aa175717948c 
2018-12-21 06:36:30
BiblePayMiner::SendTithe::Sent Tithe in amount of 215.100000 UpdateTip: new best=90aa5cdcc19e650af6cb401fd97b108830374dd46c6a534a3ee2f99557627c18  height=93331  log2_work=44.351069  tx=100653  date=2018-12-21 06:37:18 progress=0.999999  cache=0.4MiB(1257tx)
2018-12-21 06:37:27 AddToWallet 7d61ef23c0c5e35b95f0027666ab565636d9d28ef04a3994b4b5aa175717948c  update
2018-12-21 06:37:27 ProcessNewBlock : ACCEPTED
2018-12-21 06:38:05 UpdateTip: new best=a8986610180fba1c8ef1d9ae3cd10ab255720d0c10bdee593666b440bb7d3aff  height=93332  log2_work=44.351073  tx=100654  date=2018-12-21 06:37:54 progress=0.999999  cache=0.4MiB(1258tx)
2018-12-21 06:38:05 ProcessNewBlock : ACCEPTED
2018-12-21 06:38:44 CBlock(hash=6b7a9c46945f5d4626052671edb6d441fda24c1cae318b48458670f00e35b66c, ver=536870912, hashPrevBlock=90aa5cdcc19e650af6cb401fd97b108830374dd46c6a534a3ee2f99557627c18, hashMerkleRoot=8d4903f63322ff79a9b976d088f87eafb9736a52108069bfa113b272669c8eef, nTime=1545374268, nBits=1d4a74fd, nNonce=2890, vtx=1)
  CTransaction(hash=8d4903f633, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 03946c010101)
    CTxOut(nValue=4782.69837500, scriptPubKey=2102bdba9679c392117be261f88dbb)


2018-12-21 06:38:44

ProcessBlockFound::Generated 4782.698375
2018-12-21 06:38:44 ERROR: ProcessBlockFound -- generated block is stale
2018-12-21 06:38:52 Misbehaving: 195.201.30.231:60048 (0 -> 14)
2018-12-21 06:41:30 UpdateTip: new best=585a00d9c7f6a089ab8dc8976cda109bae3b88def6775963cf816b613da3b659  height=93333  log2_work=44.351079  tx=100655  date=2018-12-21 06:41:25 progress=0.999999  cache=0.4MiB(1259tx)
2018-12-21 06:41:30 ProcessNewBlock : ACCEPTED
2018-12-21 06:41:50 UpdateTip: new best=1b87b8274c8572e47a490723752870fdc7976fe2f53b4ab65b9c47a983fbe15c  height=93334  log2_work=44.351082  tx=100656  date=2018-12-21 06:41:44 progress=0.999999  cache=0.4MiB(1260tx)
2018-12-21 06:41:50 ProcessNewBlock : ACCEPTED
2018-12-21 06:42:40  CreateTransaction::Requiring specific coin age 12.430000 and coin amount 5178 2018-12-21 11:27:15




  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #132 on: December 21, 2018, 09:23:05 AM »
Woke up this AM wallet was closed..
heres debug log
Code: [Select]


2018-12-21 06:35:10

ProcessBlockFound::Generated 4782.6984526
2018-12-21 06:35:10 ERROR: ProcessBlockFound -- generated block is stale
2018-12-21 06:35:13 UpdateTip: new best=ce85f07771c8b26df128b557e4f7131e9ce2dbfa91efae999125bc8fb2118ba1  height=93330  log2_work=44.351064  tx=100651  date=2018-12-21 06:35:10 progress=1.000000  cache=0.4MiB(1254tx)
2018-12-21 06:35:13 ProcessNewBlock : ACCEPTED
2018-12-21 06:35:35 Misbehaving: 172.245.93.118:51750 (0 -> 14)
2018-12-21 06:36:29  CreateTransaction::Requiring specific coin age 12.170000 and coin amount 5070 keypool added key 2059, size=1001
2018-12-21 06:36:29 init message: Loading wallet... (205.69 %)
2018-12-21 06:36:30 CommitTransaction:
CTransaction(hash=7d61ef23c0, ver=1, vin.size=1, vout.size=2, nLockTime=93330)
    CTxIn(COutPoint(9e51b8c060d9625be5107b9c1499c05a0583902c0c36ceaafec34f4396446337, 1), scriptSig=47304402205bdc80eb721dfb, nSequence=4294967294)
    CTxOut(nValue=215.10000000, scriptPubKey=76a9149cff090c148949e19f4ed915)
    CTxOut(nValue=4864.05072207, scriptPubKey=76a91454ec8b20a625794e64a8d94e)
2018-12-21 06:36:30 committing Tx with message <TITHER>yaSJ9FdsPcQvGjyrzxVFUPjg6wkJBQwaxc</TITHER><NICKNAME>thesnat1</NICKNAME><TITHESIGNER>yaSJ9FdsPcQvGjyrzxVFUPjg6wkJBQwaxc</TITHESIGNER>

2018-12-21 06:36:30 keypool keep 1059
2018-12-21 06:36:30 AddToWallet 7d61ef23c0c5e35b95f0027666ab565636d9d28ef04a3994b4b5aa175717948c  new
2018-12-21 06:36:30 AddToWallet 7d61ef23c0c5e35b95f0027666ab565636d9d28ef04a3994b4b5aa175717948c 
2018-12-21 06:36:30
BiblePayMiner::SendTithe::Sent Tithe in amount of 215.100000 UpdateTip: new best=90aa5cdcc19e650af6cb401fd97b108830374dd46c6a534a3ee2f99557627c18  height=93331  log2_work=44.351069  tx=100653  date=2018-12-21 06:37:18 progress=0.999999  cache=0.4MiB(1257tx)
2018-12-21 06:37:27 AddToWallet 7d61ef23c0c5e35b95f0027666ab565636d9d28ef04a3994b4b5aa175717948c  update
2018-12-21 06:37:27 ProcessNewBlock : ACCEPTED
2018-12-21 06:38:05 UpdateTip: new best=a8986610180fba1c8ef1d9ae3cd10ab255720d0c10bdee593666b440bb7d3aff  height=93332  log2_work=44.351073  tx=100654  date=2018-12-21 06:37:54 progress=0.999999  cache=0.4MiB(1258tx)
2018-12-21 06:38:05 ProcessNewBlock : ACCEPTED
2018-12-21 06:38:44 CBlock(hash=6b7a9c46945f5d4626052671edb6d441fda24c1cae318b48458670f00e35b66c, ver=536870912, hashPrevBlock=90aa5cdcc19e650af6cb401fd97b108830374dd46c6a534a3ee2f99557627c18, hashMerkleRoot=8d4903f63322ff79a9b976d088f87eafb9736a52108069bfa113b272669c8eef, nTime=1545374268, nBits=1d4a74fd, nNonce=2890, vtx=1)
  CTransaction(hash=8d4903f633, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 03946c010101)
    CTxOut(nValue=4782.69837500, scriptPubKey=2102bdba9679c392117be261f88dbb)


2018-12-21 06:38:44

ProcessBlockFound::Generated 4782.698375
2018-12-21 06:38:44 ERROR: ProcessBlockFound -- generated block is stale
2018-12-21 06:38:52 Misbehaving: 195.201.30.231:60048 (0 -> 14)
2018-12-21 06:41:30 UpdateTip: new best=585a00d9c7f6a089ab8dc8976cda109bae3b88def6775963cf816b613da3b659  height=93333  log2_work=44.351079  tx=100655  date=2018-12-21 06:41:25 progress=0.999999  cache=0.4MiB(1259tx)
2018-12-21 06:41:30 ProcessNewBlock : ACCEPTED
2018-12-21 06:41:50 UpdateTip: new best=1b87b8274c8572e47a490723752870fdc7976fe2f53b4ab65b9c47a983fbe15c  height=93334  log2_work=44.351082  tx=100656  date=2018-12-21 06:41:44 progress=0.999999  cache=0.4MiB(1260tx)
2018-12-21 06:41:50 ProcessNewBlock : ACCEPTED
2018-12-21 06:42:40  CreateTransaction::Requiring specific coin age 12.430000 and coin amount 5178 2018-12-21 11:27:15



Nothing can be seen in the log but I think I got that bug in the upcoming version with chat.
Lets try again on the next version otherwise someone will have to run it in valgrind to get the line number.

Building....



  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #133 on: December 21, 2018, 11:09:44 AM »
Explanation of In-Wallet Chat


The original idea for in-wallet chat was born from this hypothetical idea:  Can we add a "Get Saved" button to the core wallet.  The Get Saved button would appeal to those seeking Jesus, but have never actually been saved.  A person might use it who is too shy to respond to an altar call, or maybe they will go through the process with us and we will help them understand what it means, then encourage them to get saved at church, etc.  But I envisioned having a list of on-call priests capable of helping a person get saved, and if all of our Priests are offline, the "call for the priest" redirects the user to a web page with a list of Getting Saved resources (we might have 5 different to choose from - Billy Graham, Cioccolanti, Jesus-Christ.US, etc, and the user clicks from there).  Of course, this flow requires us to have an in-wallet paging system to reach the priest, a list of on-call priests maintained in some type of 'registration' system in the chain, a chat initiation, a ringer, the ability for the priest to answer and chat with the user etc.  This led to in-wallet chat; why don't we create the first native bitcoin chat client object so we can re-use this (IE in other coins, and of course for our purposes-   General Chat Room, Private Chat, Page a Priest, Chat about a Proposal, etc).

So moving on, in version 1.0, we now have a General Chat Room and a Private Message Chat.

Note that you must set up your nickname in the config file first - set "nickname=your-name" and reboot.

PRIVATE MESSAGING


When you click Chat | PM, the wallet will ask you for the destination recipient nickname.  Enter one that you know (from POG).  The wallet will then Page the recipient 4 times, once per second.  What is happening on the other end of the line is the recipient wallet will receive the request as long as their qt wallet is open and connected, even if their chat windows are closed, and will spring up a new chat window.  This particular conversation is private between you and the recipient (however note that the actual messages are sent through the biblepay-network of nodes - and the messages are not currently encrypted - we will look into that issue later).

PUBLIC CHAT ROOM

When you click Chat | General, the wallet opens up a General chat room (we made this Chat object in a way that we will be able to have more rooms in the future).  Anyone who enters the chat *during* the conversation will be seen as such-and-such entered the chat room.  All participants can see the chat (as you might expect).

Version 1.1.7.1 is required to test this chat feature.

(Should be ready in approx 1 hour).



  • Rob Andrews
  • Administrator

    • 2267


    • 29
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: Testnet - Test Proof of Giving
« Reply #134 on: December 21, 2018, 11:30:07 AM »
1.1.7.1
Mandatory Upgrade for TestNet


- Enabled Chat v1.0
- Fixed bug in POG (between 1.1.6.9 and 1.1.7.0)