Bible Pay

Read 217461 times

  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #165 on: April 07, 2019, 07:38:55 PM »
aha, I didnt have this externalip=my_ipv4_address:40001
and I enter different port 19999. its (213.250.22.35)

Good point, I will fix that 19999 typo now in the Evo source.

Hey - I cant connect to you (telnet 213.250.22.35 40001).  You also must port forward 40001 to your biblepay host IP in your router.



  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #166 on: April 07, 2019, 07:41:05 PM »
Hi guys,

If I find some spare time in the coming week, I will read through all the documentation and fire up a testnet rig  :)

Thanks, that would be awesome!

The diary feature should be out within the next 2 days.

So far we've only tested legacy sanctuaries, GSC creation and emission, watchman, and proposals, but I expect testing to go much smoother now that we are over the very large hump (the gsc data-health test).



  • orbis
  • Full Member

    • 215


    • 7
    • February 08, 2018, 04:37:14 PM
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #167 on: April 08, 2019, 12:04:13 PM »
Hi all,
after few weeks I'm back :) and I wanted to start testing, but I don't know how :D
I've read GSC wiki page, this thread, but I don't know how to join POG.
I've made "exec cpk orbis", "exec join pog" and I have confirmation tx's in my wallet (on April 3rd).
But after mining for few days, I haven't any POG reward or any POG tx (GSC transmission) from my wallet.
My biblepay.conf has "pog_coinagepercentage=.50 pog_foundationdonation=1000" but still nothing.
I see myself in "exec getcampaigns" but not in "exec prominence".

Is there any command to make GSC transmission manually?
I've found "exec sendgscc" but after it nothing happens ("results": 1 but without GSC tx).
I've tried to join to HEALING 20 blocks ago so I'll see the result with this. For now it was with ""Results": true".
I'm running on WIN10, 1143 version, encrypted wallet.
May be that problem, that I run my wallet locked? Is it needed to have wallet unlocked like in POG, PODC? If yes, it would be nice to have "password popup" on start and "-headlesspodcpassword" on linux.
I dont have MN for now, but after MN consolidation I won't have MN in prod too, so I take testing of this on you :)


  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #168 on: April 08, 2019, 12:16:42 PM »
Hi all,
after few weeks I'm back :) and I wanted to start testing, but I don't know how :D
I've read GSC wiki page, this thread, but I don't know how to join POG.
I've made "exec cpk orbis", "exec join pog" and I have confirmation tx's in my wallet (on April 3rd).
But after mining for few days, I haven't any POG reward or any POG tx (GSC transmission) from my wallet.
My biblepay.conf has "pog_coinagepercentage=.50 pog_foundationdonation=1000" but still nothing.
I see myself in "exec getcampaigns" but not in "exec prominence".

Is there any command to make GSC transmission manually?
I've found "exec sendgscc" but after it nothing happens ("results": 1 but without GSC tx).
I've tried to join to HEALING 20 blocks ago so I'll see the result with this. For now it was with ""Results": true".
I'm running on WIN10, 1143 version, encrypted wallet.
May be that problem, that I run my wallet locked? Is it needed to have wallet unlocked like in POG, PODC? If yes, it would be nice to have "password popup" on start and "-headlesspodcpassword" on linux.
I dont have MN for now, but after MN consolidation I won't have MN in prod too, so I take testing of this on you :)

Glad to see you here Orbis!

So lets deal with POG first and Healing a little later today as that is more minor (and waiting for the diary anyway).

So yes you do need to have a CPK and be joined to POG, but you already did the 'exec cpk orbis' , and you did the exec join pog, and I do confirm: I see you in exec getcampaigns.


Most likely there is an error in your exec sendgscc.  Once you resolve this the miner will become automatic again.
Please grep your log for this:
Created client side transmission

It probably has an error behind it.

To resolve the error, I think all you have to do is consolidate some of your coins (to have less than would result in a 100,000 byte GSCC transaction).
You can either manually consolidate (we have a new button in QT called 'check some' ) or you can do the 'exec bankroll' feature.

Then once consolidated, try the 'exec sendgscc true' again and confirm no error is in the log?

PS I don't see a gscc tx from you - you are not in exec prominence



  • orbis
  • Full Member

    • 215


    • 7
    • February 08, 2018, 04:37:14 PM
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #169 on: April 08, 2019, 01:06:12 PM »
Many of my greps are similiar like this:
Code: [Select]
2019-04-08 14:25:53
SmartContract-Client::Creating Client side transaction for campaign POG
Created client side transmission -  [Sorry, wallet must be unlocked.] with txid 0000000000000000000000000000000000000000000000000000000000000000 UpdateTip: new best=4dad01934762a84a41b2290711372190258a7339f4d6eb4be4a203e6b1838a9c height=18471 version=0x20000001 log2_work=42.10664032 tx=41984 date='2019-04-07
So it looks, that wallet must be unlocked.
Now I have it unlocked, and after  'exec sendgscc true' it was successful and I have 2x GSC-Transmission tx :)
I don't know why it was not successful before (I've tried it with unlocked wallet too)
So, will be there "password popup" on start and "-headlesspodcpassword" on linux?
BTW, I've made bankroll and I'm waiting for confirmations, but I didn't found 'check some' button. Where is it?


  • vuli
  • Newbie

    • 31


    • 1
    • June 02, 2018, 02:28:10 PM
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #170 on: April 08, 2019, 01:52:14 PM »
Good point, I will fix that 19999 typo now in the Evo source.

Hey - I cant connect to you (telnet 213.250.22.35 40001).  You also must port forward 40001 to your biblepay host IP in your router.
it should be open now. I had some trouble.


  • orbis
  • Full Member

    • 215


    • 7
    • February 08, 2018, 04:37:14 PM
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #171 on: April 08, 2019, 02:29:02 PM »
It looks, that now it is working fine for me and I'll be waiting for automatic GSC tx.
But I have few questions :)
I've read wiki few times, but I didn't understand how (POG) GSC tx exactly works.
Like I said  few times, maybe it's with language barrier, maybe I just don't get it :D
After my 1st successful GSC I've had conf like this:
Code: [Select]
pog_coinagepercentage=.5
pog_foundationdonation=1000
but I saw that my donation was only 7tBBP, like default and I have 2 GSC txs each with around 50k tBBPs spent.
I've changed conf to:
Code: [Select]
pog_coinagepercentage=1
pog_foundationdonation=1000
and tried forced GSC again.
Result was that my donation is still 7 tBBPs and those 2 GSC txs spend each around 145k tBBPs.
So I'm really confused.
  • I think that 2 GSC txs are because POG and HEALING. Is that true?
  • Why is my donation only 7 tBBPs?
  • Why there is so huge difference between spended amount? (50k vs 145k is not .5 vs 1)
  • Is the spended amount same as Coin Amount in your POG formula?
  • How it is the spended amount counted? What is it based on?
  • Is it possible to set spended amount to exact number? e.g. 5000
  • How to find expected Coin Amount and Coin Age Days?
Thanks :)


  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #172 on: April 08, 2019, 02:34:33 PM »
it should be open now. I had some trouble.

Yes, got it to connect now, you should stay in enabled then - please let us know if it fails.

Good luck.


  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #173 on: April 08, 2019, 02:48:18 PM »
Many of my greps are similiar like this:
Code: [Select]
2019-04-08 14:25:53
SmartContract-Client::Creating Client side transaction for campaign POG
Created client side transmission -  [Sorry, wallet must be unlocked.] with txid 0000000000000000000000000000000000000000000000000000000000000000 UpdateTip: new best=4dad01934762a84a41b2290711372190258a7339f4d6eb4be4a203e6b1838a9c height=18471 version=0x20000001 log2_work=42.10664032 tx=41984 date='2019-04-07
So it looks, that wallet must be unlocked.
Now I have it unlocked, and after  'exec sendgscc true' it was successful and I have 2x GSC-Transmission tx :)
I don't know why it was not successful before (I've tried it with unlocked wallet too)
So, will be there "password popup" on start and "-headlesspodcpassword" on linux?
BTW, I've made bankroll and I'm waiting for confirmations, but I didn't found 'check some' button. Where is it?

Something in my gut makes me dislike that pop up-type in password wizard.  (Partially from the boot-up annoyance, partially from the anticipation from security experts that it pops up during boot) -- I feel the security experts may frown on it (even though we store it in a securestring).  So in Evo, I added this:
exec setautounlockpassword password
(as an alternative).  This way, the user must be competent enough to initiate the process to type it in.  So please test that and let me know if it solves the issue?

(On the before:  There was probably a different error in the log, as I did raise the max transaction bytes to 100K during the last release).

We should also bubble up any GSC errors to the user in getmininginfo I suppose.



  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #174 on: April 08, 2019, 03:09:44 PM »
It looks, that now it is working fine for me and I'll be waiting for automatic GSC tx.
But I have few questions :)
I've read wiki few times, but I didn't understand how (POG) GSC tx exactly works.
Like I said  few times, maybe it's with language barrier, maybe I just don't get it :D
After my 1st successful GSC I've had conf like this:
Code: [Select]
pog_coinagepercentage=.5
pog_foundationdonation=1000
but I saw that my donation was only 7tBBP, like default and I have 2 GSC txs each with around 50k tBBPs spent.
I've changed conf to:
Code: [Select]
pog_coinagepercentage=1
pog_foundationdonation=1000
and tried forced GSC again.
Result was that my donation is still 7 tBBPs and those 2 GSC txs spend each around 145k tBBPs.
So I'm really confused.
  • I think that 2 GSC txs are because POG and HEALING. Is that true?
  • Why is my donation only 7 tBBPs?
  • Why there is so huge difference between spended amount? (50k vs 145k is not .5 vs 1)
  • Is the spended amount same as Coin Amount in your POG formula?
  • How it is the spended amount counted? What is it based on?
  • Is it possible to set spended amount to exact number? e.g. 5000
  • How to find expected Coin Amount and Coin Age Days?
Thanks :)

Yeah, lets iron this out.
  • I think that 2 GSC txs are because POG and HEALING. Is that true?
:

Yes, because the rules vary from campaign to campaign, the wallet will iterate through each enrolled campaign, and send one GSCC transmission individually.  I thought about originally having one big transaction, but for multiple reasons, one individual for each campaign is better (primarily because we might have a stake-interest for example, that requires distinct coins to be staked for the Interest campaign, and distinct Other coins staked for POG for example).  We can label the transaction in the UI "Healing" soon (I just added to my list).

  • Why is my donation only 7 tBBPs?
It looks like this is case sensitive (this needs fixed).  For now, please make it :  POG_foundationdonation=nnnn  and it should work.

  • Why there is so huge difference between spended amount? (50k vs 145k is not .5 vs 1)
Its due to the coin*age it found breaching the original coinage percentage setting, as compared to "all your coins" at once.  I'm making a feature now that will shed light on this - please wait for the next versions report and Ill explain how to run this.

  • How it is the spended amount counted? What is it based on?
On a side note you can type 'exec getpogpoints txid' and it will show you how many points you earned for a gscc transmission.  But, let me see if I can answer this question for you based on a tool.  For now, the high level answer is : If you have .50 coin age percentage selected, the wallet will multiply your CoinAmount*Age(inDays) for each coin in the wallet, and collect half of the coin age out of the wallet in a big transmission, staked to yourself.   Let me know if that part does not answer it.

  • Is it possible to set spended amount to exact number? e.g. 5000
Hmmm, that would add complexity, then we would need more wallet settings.  I think most people will want to set a Percentage of their wallet coins for a certain project.  We can talk more about this if you can convince me on the usefulness.  Know that Im making a report now that will clearly show the metrics in/out and it might shed light on the mechanics of the ROI for these campaigns.

Expected coin*age:
Go to coin control, take the age in days of a coin, multiply that * the coin amount = coin_age.

How to find "click some" button:
Go to coin control, look for 2nd button on the top left




  • orbis
  • Full Member

    • 215


    • 7
    • February 08, 2018, 04:37:14 PM
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #175 on: April 08, 2019, 05:06:04 PM »
Thanks Rob.
Now it makes more sense to me :)
I'll be collecting more question for later :D


  • vuli
  • Newbie

    • 31


    • 1
    • June 02, 2018, 02:28:10 PM
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #176 on: April 09, 2019, 11:21:35 AM »
nope,... It is getting EXPIRED again.


  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #177 on: April 09, 2019, 11:39:55 AM »
nope,... It is getting EXPIRED again.

Yeah, looking in my sancs logs for your ip 213.250*, I see you are masternode lockpoint 9e54110*, and I do see "Masternode ping is invalid" last night @ 19:53:13 2019-04-08. 

The other sancs will vote you down for payment if they receive bad health pings back over a certain threshhold, and then your node will be required to be restarted. 

It probably has something to do with your LAN consistency - as my sancs haven't been expiring.

« Last Edit: April 09, 2019, 03:17:24 PM by Rob Andrews »


  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #178 on: April 09, 2019, 03:48:52 PM »
1.4.1.4-Mandatory Upgrade for TestNet

- Remove debug spam
- Add Quantitative Tightening (with sporks)
- Fix Sanc Port # in Documentation
- Reset govobj deletion delay back to original parameters
- Bubble GSC transmission errors into getmininginfo
- Add Diary Entry to sendcoinsentry UI page
- Add ability to make a Diary entry for campaigns supporting diary
entries
- Add ability to see Diary Entry from the Transaction List double click
- Add ability to send GSC transmission from Send Coins entry UI
- Add QT Level and BBP Price to Overview page, getblock nnnn, exec price
- Change exec getpogpoints to exec getpoints, make getpoints capable of
showing any GSC transmission type tx points
- Modify exec prominence to show personal prominence (exec prominence
true) or all (exec prominence false)
- Modify exec sendgscc to take a diary entry
- Added exec sentgsc report (To see mining expenses, run this, this
breaks down donations, coinage transmissions, and totals).  To see
revenue, run exec prominence true.
- Modified campaigns that take diaries to reward 0 without diary entry
- Added exec price (this shows the current BBP price, BTC price, and QT
level)


  • Rob Andrews
  • Administrator

    • 4097


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: TestNet - BiblePay-Evolution & GSCs (Generic Smart Contracts)
« Reply #179 on: April 09, 2019, 03:49:20 PM »
I'll explain some of these release notes asap.