Bible Pay

Read 3741 times

  • tiras
  • Jr. Member

    • 57


    • 1
    • September 01, 2017, 02:00:09 pm
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #30 on: January 21, 2018, 11:18:01 am »
Go ahead and type 'showblock blocknumber'
for example: showblock 1842

And then you can see the POL fields - take a look at the POL age, and the POL weight
You had a weight of 204259 due to age being .40 and amount staked being 500,000.

But the influence on the network level was zero because of the current money supply level.
Everything appears to be working, but I do think we need to add in the "sanctuary locked funds" effect into the money supply to make this system much more accurate.  In summary, that means POL would become easier after I do that.

The theory is that in prod, we have 100 sancs now with locked supply.  Thats 100* 1.55M = 155M of locked funds out of a 350MM supply.  Thats a level of about 55% of the entire money supply.  Meaning that if we can add that accurate argument in to our GetMoneySupply, we could make a much more accurate boost level for POL.


We will probably need a patch for whatever sanc issue we have in prod.  After I take a look at that, Ill consider doing this at the same time.


my stakebalance should be higher but I 've sent 200k to another user for testing

Code: [Select]
12:16:59

exec stakebalance


12:16:59

{
  "Command": "stakebalance",
  "StakeBalance": 503378
}


12:17:01

showblock blocknumber


12:17:01

bad lexical cast: source type value could not be interpreted as target (code -1)


12:17:18

showblock 1842


12:17:18

{
  "hash": "d9a4fb1016c450b9077897cc615768c745c0de3fa7565a4c69bb5bbef4fd34cd",
  "hash2": "7b766d85896f198b6f539212149844ec6a1f665cd0325c640e74592691a30144",
  "confirmations": 311,
  "size": 994,
  "height": 1842,
  "version": 536870912,
  "merkleroot": "f2a75c9368e1a18fc6b60bb16d623caa2c42c63d56b030e03f5bf17114a7ffb1",
  "tx": [
    "86d51b286ece17710a59d791f42a209611ad710f25c0ea1a5dad230af5b0258d",
    "b8aa2ee279953056349773c9f8d8892fa8804ec05d7bec94cc71f8b373431cc6"
  ],
  "time": 1516528953,
  "mediantime": 1516528498,
  "hrtime": "01-21-2018 10:02:33",
  "nonce": 632,
  "bits": "1d015f9a",
  "difficulty": 0.7280857682479724,
  "chainwork": "000000000000000000000000000000000000000000000000000006d84b751b3f",
  "subsidy": 16885,
  "blockversion": "1.0.8.3",
  "masternodereward": 299565000000,
  "previousblockhash": "02629d8bce8eaeb1f8e16387b816bf7e3f5c25d8252dd2bd40c6e26e382dc353",
  "verses": "Co1|3|22| Whether Paul, or Apollos, or Cephas, or the world, or life, or death, or things present, or things to come; all are your's;\r\nExo|10|27| But the LORD hardened Pharaoh's heart, and he would not let them go.\r\nPsa|118|15| The voice of rejoicing and salvation is in the tabernacles of the righteous: the right hand of the LORD doeth valiantly.\r\nJoh|7|36| What manner of saying is this that he said, Ye shall seek me, and shall not find me: and where I am, thither ye cannot come?\r\nHab|2|5| Yea also, because he transgresseth by wine, he is a proud man, neither keepeth at home, who enlargeth his desire as hell, and is as death, and cannot be satisfied, but gathereth unto him all nations, and heapeth unto him all people:\r\nRev|11|1| And there was given me a reed like unto a rod: and the angel stood, saying, Rise, and measure the temple of God, and the altar, and them that worship therein.\r\nJer|46|20| Egypt is like a very fair heifer, but destruction cometh; it cometh out of the north.\r\nKg1|8|18| And the LORD said unto David my father, Whereas it was in thine heart to build an house unto my name, thou didst well that it was in thine heart.\r\n",
  "satisfiesbiblehash": "true",
  "biblehash": "0000000030622a24294cdf1c11fa61b2e03a5ef16065e391dbf809d9f3dd0617",
  "proof_of_loyalty_weight": 204259.235618144,
  "proof_of_loyalty_errors": "",
  "proof_of_loyalty_xml": "<VER>1.0.8.3</VER><polmessage>b092bc1e50d22e570b0ce7a15400f1a273b08cf09518df2cf9b8bcfb52aad6c2</polmessage><polweight>204131.92</polweight><polamount>500000.00</polamount><polavgage>0.408</polavgage><SIG_0>H+qTGu82Ce9G027bwKNZWlrYAOVQS/LP3qJuB2qqFAZ2ToR6cjVDAFOpHp4g2MbgMaNzI+d9PLrKTD/M43/gu8c=</SIG_0><SIG_1>H4x1Qs8hXHNSWr6N9QvhZrmrLFOjzuQCdxbP4oDbJSy0YqhSWgc29DBHXkl1ljz4Flz3u0QPRAiXmrQ0tddQbj0=</SIG_1>",
  "proof_of_loyalty_metrics": "<polamount>500000.00</polamount><polavgage>0.409</polavgage>",
  "block_target_hash": "000000015f9a0000000000000000000000000000000000000000000000000000",
  "proof_of_loyalty_block_target": "000000015f9a0000000000000000000000000000000000000000000000000000",
  "proof_of_loyalty_influence_percentage": 0,
  "prayers": "",
  "nextblockhash": "4d1e0d4ebb1c30b1684fc5892705cff02be6311399afa4d68c252c69a7a7debd"
}


  • jaapgvk
  • Sr. Member

    • 494


    • 19
    • September 01, 2017, 08:02:57 pm
    • Netherlands
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #31 on: January 21, 2018, 02:32:40 pm »
yfm4gbDunC1moMUwrQQSobgEnZHbshTTpK

...hmm...with balance "0" and "proof_of_loyalty_errors": "BALANCE TOO LOW TO STAKE" I receive 2times a mined bbp, who are "immature". It's OK?

Sounds fine. Just wait a little and the mined blocks should mature.


  • klondike
  • Full Member

    • 141


    • -8
    • October 10, 2017, 09:00:24 am
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #32 on: January 21, 2018, 04:08:14 pm »
What does exec stakebalance say?


23:07:59

exec stakebalance


23:07:59

{
  "Command": "stakebalance",
  "StakeBalance": 1341499
}

Quote
23:20:03

{
  "blocks": 2367,
  "currentblocksize": 1000,
  "currentblocktx": 0,
  "difficulty": 0.8277965844785772,
  "errors": "",
  "genproclimit": 1,
  "networkhashps": 580167236.0329986,
  "hashps": 468.9287194903009,
  "minerstarttime": "01-21-2018 22:10:27",
  "ratio": 1,
  "hc1": 270336,
  "bhc2": 483328,
  "hashcounter": 270336,
  "competetive_mining": true,
  "competetivemining_hash_counter": 253470,
  "global_competetive_mining_tithe": 26,
  "competetive_mining_ratio": 0,
  "pooledtx": 0,
  "testnet": true,
  "chain": "test",
  "biblepay-generate": true,
  "poolinfo1": "",
  "poolinfo2": "",
  "poolinfo3": "",
  "miningpulse": 62,
  "poolmining": false,
  "pool_url": "",
  "poolmining_use_ssl": false,
  "proof_of_loyalty_target_percentage": 1,
  "proof_of_loyalty_weight": 0,
  "proof_of_loyalty_influence_percentage": 0,
  "proof_of_loyalty_errors": "INSUFFICIENT FUNDS, ENSURE WALLET IS UNLOCKED"
}
im unlock and my balance without changes .... where is problem?

im using this

testnet=1
genproclimit=1
addnode=node.biblepay.org
polpercentage=100
« Last Edit: January 21, 2018, 04:34:34 pm by klondike »


  • tiras
  • Jr. Member

    • 57


    • 1
    • September 01, 2017, 02:00:09 pm
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #33 on: January 21, 2018, 05:23:15 pm »
Rob ,  what does this mean in the TX details ?

Subsidy: 16864.2070
Proof-Of-Loyalty Weight: 48445.8

Code: [Select]
Status: 13 confirmations, broadcast through 28 nodes
Date: 1/21/2018 18:00
Source: Generated
Credit: 16 951.54999999 tBiblepay (matures in 89 more blocks)
Net amount: 0.00000000 tBiblepay

Height: 2397
Difficulty: 1.247787
Time: 01-21-2018 23:00:17
Subsidy: 16864.2070
Proof-Of-Loyalty Weight: 48445.83

also ,  what are these tiny  charges showing with every mined block ?

-0.00015860

Code: [Select]
Transaction fee: -0.00015860 tBiblepay
Net amount: -0.00015860 tBiblepay

Height: 2397
Difficulty: 1.247787
Time: 01-21-2018 23:00:17
Subsidy: 16864.2070
Proof-Of-Loyalty Weight: 171338.00


  • Rob A.
  • Administrator

    • 1101


    • 18
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #34 on: January 21, 2018, 07:06:42 pm »
Rob ,  what does this mean in the TX details ?

Subsidy: 16864.2070
Proof-Of-Loyalty Weight: 48445.8

Code: [Select]
Status: 13 confirmations, broadcast through 28 nodes
Date: 1/21/2018 18:00
Source: Generated
Credit: 16 951.54999999 tBiblepay (matures in 89 more blocks)
Net amount: 0.00000000 tBiblepay

Height: 2397
Difficulty: 1.247787
Time: 01-21-2018 23:00:17
Subsidy: 16864.2070
Proof-Of-Loyalty Weight: 48445.83

also ,  what are these tiny  charges showing with every mined block ?

-0.00015860

Code: [Select]
Transaction fee: -0.00015860 tBiblepay
Net amount: -0.00015860 tBiblepay

Height: 2397
Difficulty: 1.247787
Time: 01-21-2018 23:00:17
Subsidy: 16864.2070
Proof-Of-Loyalty Weight: 171338.00


The charge is the transaction fee for the POS tx in the block (the amount spent to send it to yourself).
The weight is the stakeage*amountstaked (outlined in the spec doc).


  • jaapgvk
  • Sr. Member

    • 494


    • 19
    • September 01, 2017, 08:02:57 pm
    • Netherlands
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #35 on: January 22, 2018, 03:16:59 am »
all POS is crap  >:( 

no help
no tutorial what is what
no video help

togo/rob will be time when bbp will be mining only botnet and you  ;)

You know this is testnet right? What do you need help with?


  • klondike
  • Full Member

    • 141


    • -8
    • October 10, 2017, 09:00:24 am
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #36 on: January 22, 2018, 08:03:01 am »
nobody knows how it work....beautiful  ...
im mining with staked 2.7M BBP and results nothing


  • jaapgvk
  • Sr. Member

    • 494


    • 19
    • September 01, 2017, 08:02:57 pm
    • Netherlands
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #37 on: January 22, 2018, 08:45:42 am »
nobody knows how it work....beautiful  ...
im mining with staked 2.7M BBP and results nothing

Do you mean you still get "INSUFFICIENT FUNDS, ENSURE WALLET IS UNLOCKED"?

I didn't get that before, but I do get it now.

I first staked 10% without problems:
Code: [Select]
  "blocks": 2268,
  "currentblocksize": 1000,
  "currentblocktx": 0,
  "difficulty": 4.130205297074162,
  "errors": "",
  "genproclimit": 1,
  "networkhashps": 1430163394.55595,
  "hashps": 139.3904570489989,
  "minerstarttime": "01-21-2018 10:37:50",
  "ratio": 1,
  "hc1": 4707992,
  "bhc2": 7857816,
  "hashcounter": 4707992,
  "competetive_mining": true,
  "competetivemining_hash_counter": 4438530,
  "global_competetive_mining_tithe": 303,
  "competetive_mining_ratio": 0,
  "pooledtx": 0,
  "testnet": true,
  "chain": "test",
  "biblepay-generate": true,
  "poolinfo1": "",
  "poolinfo2": "",
  "poolinfo3": "",
  "miningpulse": 997,
  "poolmining": false,
  "pool_url": "",
  "poolmining_use_ssl": false,
  "proof_of_loyalty_target_percentage": 0.1,
  "proof_of_loyalty_weight": 11835,
  "proof_of_loyalty_influence_percentage": 0,
  "proof_of_loyalty_errors": ""

Then I made it 30% and it seemed to go well:

Code: [Select]
  "blocks": 2288,
  "currentblocksize": 1000,
  "currentblocktx": 0,
  "difficulty": 1.278881430021076,
  "errors": "",
  "genproclimit": 1,
  "networkhashps": 553951922.6495132,
  "hashps": 139.3679734561737,
  "minerstarttime": "01-21-2018 20:10:06",
  "ratio": 1,
  "hc1": 173056,
  "bhc2": 275456,
  "hashcounter": 173056,
  "competetive_mining": true,
  "competetivemining_hash_counter": 164220,
  "global_competetive_mining_tithe": 14,
  "competetive_mining_ratio": 0,
  "pooledtx": 0,
  "testnet": true,
  "chain": "test",
  "biblepay-generate": true,
  "poolinfo1": "",
  "poolinfo2": "",
  "poolinfo3": "",
  "miningpulse": 38,
  "poolmining": false,
  "pool_url": "",
  "poolmining_use_ssl": false,
  "proof_of_loyalty_target_percentage": 0.3,
  "proof_of_loyalty_weight": 45129,
  "proof_of_loyalty_influence_percentage": 0,
  "proof_of_loyalty_errors": ""

But now I also get the same loyalty_error:

Code: [Select]
  "blocks": 3048,
  "currentblocksize": 1000,
  "currentblocktx": 0,
  "difficulty": 0.8104548490020034,
  "errors": "",
  "genproclimit": 1,
  "networkhashps": 430086389.9288061,
  "hashps": 139.4398538501017,
  "minerstarttime": "01-21-2018 20:10:06",
  "ratio": 1,
  "hc1": 9273811,
  "bhc2": 16048595,
  "hashcounter": 9273811,
  "competetive_mining": true,
  "competetivemining_hash_counter": 8735280,
  "global_competetive_mining_tithe": 648,
  "competetive_mining_ratio": 0,
  "pooledtx": 0,
  "testnet": true,
  "chain": "test",
  "biblepay-generate": true,
  "poolinfo1": "",
  "poolinfo2": "",
  "poolinfo3": "",
  "miningpulse": 1973,
  "poolmining": false,
  "pool_url": "",
  "poolmining_use_ssl": false,
  "proof_of_loyalty_target_percentage": 0.3,
  "proof_of_loyalty_weight": 0,
  "proof_of_loyalty_influence_percentage": 0,
  "proof_of_loyalty_errors": "INSUFFICIENT FUNDS, ENSURE WALLET IS UNLOCKED"

I didn't change anything and the wallet is unlocked.

Code: [Select]
"Command": "stakebalance",
  "StakeBalance": 341681


  • klondike
  • Full Member

    • 141


    • -8
    • October 10, 2017, 09:00:24 am
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #38 on: January 22, 2018, 09:20:48 am »
Quote
16:20:17

{
  "blocks": 3077,
  "currentblocksize": 0,
  "currentblocktx": 0,
  "difficulty": 1.436729951330732,
  "errors": "",
  "genproclimit": 1,
  "networkhashps": 611722846.6623292,
  "hashps": 0,
  "minerstarttime": "1-1-1970 00:00:00",
  "ratio": 0,
  "hc1": 0,
  "bhc2": 0,
  "hashcounter": 0,
  "competetive_mining": true,
  "competetivemining_hash_counter": 0,
  "global_competetive_mining_tithe": 0,
  "competetive_mining_ratio": 0,
  "pooledtx": 0,
  "testnet": true,
  "chain": "test",
  "biblepay-generate": false,
  "poolinfo1": "",
  "poolinfo2": "",
  "poolinfo3": "",
  "miningpulse": 0,
  "poolmining": false,
  "pool_url": "",
  "poolmining_use_ssl": false,
  "proof_of_loyalty_target_percentage": 1,
  "proof_of_loyalty_weight": 0,
  "proof_of_loyalty_influence_percentage": 0,
  "proof_of_loyalty_errors": ""
}

im on bad chain ?  blocks 3077  :o



  • jaapgvk
  • Sr. Member

    • 494


    • 19
    • September 01, 2017, 08:02:57 pm
    • Netherlands
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #39 on: January 22, 2018, 09:43:59 am »
It's probably alright :) We have fast blocks now, I think.

Code: [Select]
./biblepay-cli -testnet getblockhash 3092
eadb8e4f7a78776f8699574ab6bf8a1fe0b9bbc0f6e60c8711eef038cd577770


  • klondike
  • Full Member

    • 141


    • -8
    • October 10, 2017, 09:00:24 am
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #40 on: January 22, 2018, 10:30:29 am »
but its weird that this info is 0 after 48hours. Can you check if your wallet still syncing masternods?


"proof_of_loyalty_weight": 0,
  "proof_of_loyalty_influence_percentage": 0,
« Last Edit: January 22, 2018, 10:32:12 am by klondike »


  • jaapgvk
  • Sr. Member

    • 494


    • 19
    • September 01, 2017, 08:02:57 pm
    • Netherlands
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #41 on: January 22, 2018, 12:04:50 pm »
but its weird that this info is 0 after 48hours. Can you check if your wallet still syncing masternods?


"proof_of_loyalty_weight": 0,
  "proof_of_loyalty_influence_percentage": 0,

Yes, that's true. Your 'loyalty_weight' should - in my opinion - be more than zero, or something is wrong with staking.

I can see that mine is more than zero again:

Code: [Select]
"proof_of_loyalty_target_percentage": 0.3,
  "proof_of_loyalty_weight": 26201,
  "proof_of_loyalty_influence_percentage": 0,
  "proof_of_loyalty_errors": ""

Also, I don't think there are active masternodes on the testnet now?


  • klondike
  • Full Member

    • 141


    • -8
    • October 10, 2017, 09:00:24 am
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #42 on: January 22, 2018, 12:35:53 pm »
by me POS is dead ....




  • Rob A.
  • Administrator

    • 1101


    • 18
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #43 on: January 22, 2018, 01:49:29 pm »
Yes, that's true. Your 'loyalty_weight' should - in my opinion - be more than zero, or something is wrong with staking.

I can see that mine is more than zero again:

Code: [Select]
"proof_of_loyalty_target_percentage": 0.3,
  "proof_of_loyalty_weight": 26201,
  "proof_of_loyalty_influence_percentage": 0,
  "proof_of_loyalty_errors": ""

Also, I don't think there are active masternodes on the testnet now?

Yes your correct, its working for you.  Your influence is just 0 because of the low number of blocks we had, we havent really emitted much money supply.

No mn's on testnet yet either, since we rejumped the chain.



As far as Clusters issue  -   I will try to create a proof-of-loyalty diagnostic command.  Let me see....



  • Rob A.
  • Administrator

    • 1101


    • 18
    • June 05, 2017, 08:09:04 pm
    • Patmos, Island Of
    more
Re: BIBLEPAY - TESTNET TESTING THREAD - TESTING Proof-Of-Loyalty
« Reply #44 on: January 22, 2018, 03:20:17 pm »
So Im going through the punchlist, checking to make sure I have everything for the next testnet release:

Money supply to take Locked coins from Sancs into account (making POL easier)
Remove decimal formatting problem in Tx List
Make POL boost more granular (IE not jump from 2% to 5%)
Make 16 min late block threshhold (to move us from 10 min to 7 min block targets)
Ensure POL age is correct to not ddos each other
Add ability to see POL in listtransactions for the daemon
Superblock budget based on a 1.5 diff (in contrast to 750,000 diff)



I was going to add a feature to diagnose POL inability to stake and then I realized, in coin control you can already see how old all of your inputs are.  This makes it easy enough for a 3 year old to do it.  Just look at your inputs and make sure they are over 24 hours old.  Then do an exec stakebalance.  I dont want to pollute the code base for something so simple. 

Anything else we need in this next release?


« Last Edit: January 22, 2018, 03:48:10 pm by Rob A. »