Bible Pay

Read 410481 times

  • orbis
  • Full Member

    • 215


    • 7
    • February 08, 2018, 04:37:14 PM
    more
Hi Orbis,
Try starting biblepayd first, then after its started try this:
/biblepay-cli -headlesspodcpassword exec podcpasswordlength
Then type the password, press <enter>

Then mine, and it should work.
As far as the error in getmininginfo, just wait a little longer.

I remember testing this the night I wrote it, but forgot the parameter must include the full 4 words as above...  Ill modify the release notes when releasing tonight.  Let me know if it works for you now.
:)
Of course I started with biblepayd
Then /biblepay-cli -headlesspodcpassword exec podcpasswordlength
Then typed the password
Then get a shower and after that getmining still gives me CPID error :(
After stoping biblepay it gives me this error:
Code: [Select]
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what():  boost: mutex lock failed in pthread_mutex_lock: Invalid argument

EDIT: tested on 3 different PCs. same result everywhere. with walletpassphrase is unlock successful.
« Last Edit: March 13, 2018, 05:44:13 PM by orbis »


  • Rob Andrews
  • Administrator

    • 4090


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
:)
Of course I started with biblepayd
Then /biblepay-cli -headlesspodcpassword exec podcpasswordlength
Then typed the password
Then get a shower and after that getmining still gives me CPID error :(
After stoping biblepay it gives me this error:
Code: [Select]
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what():  boost: mutex lock failed in pthread_mutex_lock: Invalid argument

EDIT: tested on 3 different PCs. same result everywhere. with walletpassphrase is unlock successful.

Its mining for me

bible1:~/biblepay/src$ ./biblepay-cli -headlesspodcpassword exec podcpasswordlength

I do receive the mutex error when I stop the node, but I can see after setting the password the cpid signing error is gone...

Are you sure its not mining for you?






  • T-Mike
  • Sr. Member

    • 375


    • 2
    • February 06, 2018, 06:12:58 PM
    more
Today I did not receive a reward.  Looking at my tx history, no evidence of a PODC Update tx since 3.11.18 at 08:17 local time.  Was on 1.1.1.0, so upgraded to 1.1.1.1 (although was under the impression that was not required until Thursday).  Restarted wallet, ran exec podcupdate and got the PODC Update tx, but concerned why there was no tx in about 36 hours.

The only reason I can think of is if the wallet was locked or if you didn't have enough stake balance. I think you would need to go through the log file to find out.


  • Rob Andrews
  • Administrator

    • 4090


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Today I did not receive a reward.  Looking at my tx history, no evidence of a PODC Update tx since 3.11.18 at 08:17 local time.  Was on 1.1.1.0, so upgraded to 1.1.1.1 (although was under the impression that was not required until Thursday).  Restarted wallet, ran exec podcupdate and got the PODC Update tx, but concerned why there was no tx in about 36 hours.


Hmmm, not sure if you are using QT/headless or win/lin for the controller but other than ensure that getmininginfo shows no errors after a few mins after boot (to ensure wallet is not locked or throwing a sign error), try checking the log for this:

UTXOUpdate Processed (258) over 1 CPID(s) successfully.
Look for any errors after that entry in the timespan that you were affected in, maybe the wallet threw an error?

Going forward I think the key is ensuring at least 1 thread is running with HPS > 0 and the poolinfo1: row is empty (that is where the errors are shown currently for unable to sign CPID).




  • Rob Andrews
  • Administrator

    • 4090


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Wallet was on Windows 7.

Only odd part of the debug log was

Code: [Select]
13 13:56:24  InstantSend : AllOutPointReady 0.000000, IsLockedInstantSendTransaction 0.000000, bool 1.000000
2018-03-13 13:56:24  InstantSend : AllOutPointReady 0.000000, IsLockedInstantSendTransaction 0.000000, bool 1.000000

repeated close to 100 times, one different statement in that run was

2018-03-13 13:56:24  InstantSend : AllOutPointReady 1.000000, IsLockedInstantSendTransaction 1.000000, bool 1.000000
2018-03-13 13:56:24  CInstantSend::ProcessTxLockRequest successful
2018-03-13 13:56:24  InstantSend : AllOutPointReady 1.000000, IsLockedInstantSendTransaction 1.000000, bool 1.000000

Then had

2018-03-13 13:56:29  InstantSend : AllOutPointReady 1.000000, IsLockedInstantSendTransaction 1.000000, bool 1.000000
2018-03-13 13:57:32 UpdateTip: new best=76c342e700a149155566862dc4ecda777398cf95442ed8bbd0b5ac41be8629b7  height=34370  log2_work=58.86532  tx=130988  date=2018-03-13 13:57:00 progress=0.999998  cache=1.8MiB(2269tx)
2018-03-13 13:57:32 ProcessNewBlock : ACCEPTED
2018-03-13 13:57:49 CInstantSend::CreateTxLockCandidate -- new, txid=157a2f1520b375523a3ea5cabef282eeaed7993b412ce40b138c456ae481ff24
2018-03-13 13:57:49 CInstantSend::ProcessTxLockRequest -- accepted, txid=157a2f1520b375523a3ea5cabef282eeaed7993b412ce40b138c456ae481ff24
2018-03-13 13:57:49  InstantSend : AllOutPointReady 0.000000, IsLockedInstantSendTransaction 0.000000, bool 1.000000
2018-03-13 13:57:49  CInstantSend::ProcessTxLockRequest successful
2018-03-13 13:57:49 TXLOCKREQUEST -- Transaction Lock Request accepted, txid=157a2f1520b375523a3ea5cabef282eeaed7993b412ce40b138c456ae481ff24, peer=816
2018-03-13 13:57:49 CInstantSend::CreateTxLockCandidate -- creating birth, txid=157a2f1520b375523a3ea5cabef282eeaed7993b412ce40b138c456ae481ff24
2018-03-13 13:57:49 CInstantSend::CreateTxLockCandidate -- update empty, txid=157a2f1520b375523a3ea5cabef282eeaed7993b412ce40b138c456ae481ff24
2018-03-13 13:57:49 CInstantSend::ProcessTxLockRequest -- accepted, txid=157a2f1520b375523a3ea5cabef282eeaed7993b412ce40b138c456ae481ff24
2018-03-13 13:57:49  InstantSend : AllOutPointReady 0.000000, IsLockedInstantSendTransaction 0.000000, bool 1.000000

Also for some reason after updating to 1.1.1.1 the whole thing crashed (overnight)

last lines before the crash were
2018-03-14 10:37:57 ProcessNewBlock : ACCEPTED
2018-03-14 10:43:39  VerifyDistributedBurnTransaction::PASS for CPID A895052039C2E80B20C388ACC8AC47E1
2018-03-14 10:43:43  VerifyDistributedBurnTransaction::PASS for CPID A895052039C2E80B20C388ACC8AC47E1
2018-03-14 16:29:41



Nope, nothing in the log related to a PODC update (didnt see the word PODC in there).

Please surround long snippet posts with the code tags.

Regarding the crash we will need to ask you or a volunteer to run it on linux in valgrind mode.



  • orbis
  • Full Member

    • 215


    • 7
    • February 08, 2018, 04:37:14 PM
    more
Its mining for me

bible1:~/biblepay/src$ ./biblepay-cli -headlesspodcpassword exec podcpasswordlength

I do receive the mutex error when I stop the node, but I can see after setting the password the cpid signing error is gone...

Are you sure its not mining for you?

Tested today again and now it works :)
I don't know why it didn't worked before.
But now looks fine. Thanks for it.
I wonder whether it was tested by someone else.

Do you plan to make someting with those mutex error?


  • Ichthus220
  • Newbie

    • 26


    • 0
    • December 11, 2017, 10:09:35 PM
    more
How do I associate my CPID with my other machines, So I can pool mine, without messing up the burn transaction on my PODC machine?


  • T-Mike
  • Sr. Member

    • 375


    • 2
    • February 06, 2018, 06:12:58 PM
    more
How do I associate my CPID with my other machines, So I can pool mine, without messing up the burn transaction on my PODC machine?

You can't, the CPID can only be used with one wallet at a time. You can copy the wallet to the other machines and just have one do the podc updates.


  • sdc
  • Newbie

    • 11


    • 0
    • January 11, 2018, 12:31:32 PM
    more
I also tried 1.1.1.1 and it said unable to sign CPID when I was mining on Purepool.


  • Rob Andrews
  • Administrator

    • 4090


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Not sure why it would have failed to do the update.  Again, was on 1.1.1.0, Win 7 wallet.  Upgraded to 1.1.1.1, crashed once, no crash since.  No PoDC tx being the issue.  Not mad about missing out on the Superblock reward but can imagine how if I was spending hundreds on a VPN that would be different.  Me, I'm a supporter of the coin, understand things happen.  But want to know what logs will be required to better troubleshoot.
Thanks!
So far all I can think of is your controller wallet might have stopped mining, but I cant imagine why.
The first thread, thread zero, has to have a HPS > 0 for the PODC update to work.
As far as what it logs, it should always log "PODCUpdate" in the log - and then something after it.

I suppose this will all come out in the wash.  Ive been mining on my dev machine controller wallet for 4 days now and have gotten in every superblock and each PODC update, but I realize there are still some situations out there that are unaccounted for.

Please see the PODC Update section regarding frequency, on an unrelated note if anyone is interested in *when* the miner sends it:
https://wiki.biblepay.org/Distributed_Computing#PODC_Updates



  • Rob Andrews
  • Administrator

    • 4090


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
How do I associate my CPID with my other machines, So I can pool mine, without messing up the burn transaction on my PODC machine?

All you can do is copy the wallet.dat out to the other mining machine, and mine from that machine.  It will sign those pool packets with your primary cpid then.

Some people have recommended starting a second CPID, but I do not recommend that, as we have a rule that you must be in the prior superblock with magnitude to receive payments, and therefore that second cpid would not be helping the network.  And in lieu of that Im going to work with Lich to stop that reward in the pool on both of our pools so we can reward the *real* CPIDs more BBP asap.



  • Rob Andrews
  • Administrator

    • 4090


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Tested today again and now it works :)
I don't know why it didn't worked before.
But now looks fine. Thanks for it.
I wonder whether it was tested by someone else.

Do you plan to make someting with those mutex error?

Yes, let me take a look at the mutex.  I think all that is happening is its locking the mutex and then when leveldb gets flushed it is unlocked when the thread is aborted.

The main concern I have is to ensure the wallet is flushed during exit.  I have reports here that some coins on bittrex take 35 seconds to exit because they have so many keys.  Ours is definitely getting flushed, and thats my main concern so we dont corrupt users wallets and allow them to lose any funds.

Luckily we have wallet backups also.



  • Rob Andrews
  • Administrator

    • 4090


    • 97
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
I also tried 1.1.1.1 and it said unable to sign CPID when I was mining on Purepool.
Please ensure your 'exec getboincinfo' shows a valid CPID, then also that your wallet is unlocked and HPS > 0.


  • thanospetr
  • Newbie

    • 5


    • 0
    • March 15, 2018, 04:52:15 AM
    more
Hello, I started mining for rosetta two days ago and I am trying to get used to the new procedures. My RAC has increased but I haven't received any payments yet. I know it has to do with the values of TaskWeight and UTXOWeight that are both zero, but I can't quite get the idea.

After executing the getboincinfo command, I get the following:

Code: [Select]
  "Command": "getboincinfo",
  "CPID": "1334aacdfb49248a75904d89ace59213",
  "Address": "BL6Chaxu4qiPawuiqZJS2iEm4Vhn1NGrcr",
  "CPIDS": "1334aacdfb49248a75904d89ace59213;",
  "CPID-Age (hours)": 422535,
  "NextSuperblockHeight": 34850,
  "NextSuperblockBudget": 2660579,
  "1334aacdfb49248a75904d89ace59213_ADDRESS": "BL6Chaxu4qiPawuiqZJS2iEm4Vhn1NGrcr",
  "1334aacdfb49248a75904d89ace59213_RAC": 1919.08,
  "1334aacdfb49248a75904d89ace59213_TEAM": 15044,
  "1334aacdfb49248a75904d89ace59213_TaskWeight": 0,
  "1334aacdfb49248a75904d89ace59213_UTXOWeight": 0,
  "Total_RAC": 1919.08,
  "Total Payments (One Day)": 0,
  "Total Payments (One Week)": 0,
  "Total Budget (One Day)": 2660579,
  "Total Budget (One Week)": 15963474,

After executing the podcupdate true command I get always this:
Code: [Select]
  "Command": "podcupdate",
  "PODCUpdate": "Processed 0 tasks for CPID 1334aacdfb49248a75904d89ace59213"

The getmininginfo command notes that I have some hashps, my wallet contains available bbp and I don't know if it is frozen or not, as I saw this suggegstion in a previous answer.
How should I proceed? 
Thank you


  • jaapgvk
  • Hero Member

    • 558


    • 31
    • September 01, 2017, 08:02:57 PM
    • Netherlands
    more
Hello, I started mining for rosetta two days ago and I am trying to get used to the new procedures. My RAC has increased but I haven't received any payments yet. I know it has to do with the values of TaskWeight and UTXOWeight that are both zero, but I can't quite get the idea.

After executing the getboincinfo command, I get the following:

Code: [Select]
  "Command": "getboincinfo",
  "CPID": "1334aacdfb49248a75904d89ace59213",
  "Address": "BL6Chaxu4qiPawuiqZJS2iEm4Vhn1NGrcr",
  "CPIDS": "1334aacdfb49248a75904d89ace59213;",
  "CPID-Age (hours)": 422535,
  "NextSuperblockHeight": 34850,
  "NextSuperblockBudget": 2660579,
  "1334aacdfb49248a75904d89ace59213_ADDRESS": "BL6Chaxu4qiPawuiqZJS2iEm4Vhn1NGrcr",
  "1334aacdfb49248a75904d89ace59213_RAC": 1919.08,
  "1334aacdfb49248a75904d89ace59213_TEAM": 15044,
  "1334aacdfb49248a75904d89ace59213_TaskWeight": 0,
  "1334aacdfb49248a75904d89ace59213_UTXOWeight": 0,
  "Total_RAC": 1919.08,
  "Total Payments (One Day)": 0,
  "Total Payments (One Week)": 0,
  "Total Budget (One Day)": 2660579,
  "Total Budget (One Week)": 15963474,

After executing the podcupdate true command I get always this:
Code: [Select]
  "Command": "podcupdate",
  "PODCUpdate": "Processed 0 tasks for CPID 1334aacdfb49248a75904d89ace59213"

The getmininginfo command notes that I have some hashps, my wallet contains available bbp and I don't know if it is frozen or not, as I saw this suggegstion in a previous answer.
How should I proceed? 
Thank you

What does 'exec stakebalance' say?

Please read this paragraph of the Distributed Computing wiki:
https://wiki.biblepay.org/Distributed_Computing#PODC_Updates

Quote
The PODC Updates are sent out as a transaction from the researcher to the researchers CPID public key address, with a coinstake spend amount equal to the configuration key 'utxoamount=YYYY' found in the biblepay.conf file. In this way, the researcher proves coinstake confirmation age > 6 at the time the task was announced. This UTXOAmount influences the users UTXOWeight and therefore the corresponding magnitude and reward level.

At the moment, you need to stake at least 500BBP per - expected - Magnitude.