thesnat21
Jr. Member
Offline
Activity: 490
Merit: 4
|
|
May 18, 2018, 11:05:40 PM |
|
Hey Lich! Thank you for the heads up on the explorer, seems like BiblePay crashes randomly every few weeks, (Anyone know how I can automate it to restart Biblepay if BiblePay crashes and to delete the explorer/tmp/index.pid file as well?) Explorer is updated now I've been thinking on this for a project I have going on.. I'm going to write a shell script (when I can get to it) that checks the status of the daemon and will restart it if/when it fails. I'll post it here when i'm done.
|
|
|
|
noxpost
Jr. Member
Offline
Activity: 235
Merit: 3
|
|
May 18, 2018, 11:38:25 PM |
|
Hey Lich! Thank you for the heads up on the explorer, seems like BiblePay crashes randomly every few weeks, (Anyone know how I can automate it to restart Biblepay if BiblePay crashes and to delete the explorer/tmp/index.pid file as well?) Explorer is updated now I've been thinking on this for a project I have going on.. I'm going to write a shell script (when I can get to it) that checks the status of the daemon and will restart it if/when it fails. I'll post it here when i'm done. I have one for the index.pid file I'd be happy to share as well. I am happy with it, and it would be easy to extend to the daemon too
|
|
|
|
|
togoshigekata
|
|
May 19, 2018, 12:30:40 AM |
|
0x03#8822 in the BiblePay Discord was testing swap with BiblePay for Komodo/BarterDEX, I think he needed dev help, not sure where it got left off 03/29/2018 "gooday, who'd be a staff person to talk to? i am a BarterDEX contributor and would like to integrate biblepay into it the listing price is 0 however i would need a small nbumber of coins to perform a test swap, should i succeed with my preliminary tests i think maybe my twitter profile makes the request look less scammy: https://twitter.com/0x03_kmd" -0x03 04/04/2018 "got a mail reply from rob, will execute his instructions later on" -0x03
|
|
|
|
sunk818
|
|
May 19, 2018, 12:41:36 AM |
|
I have questions about heat mining on pool.biblepay.org and purepool.org
I'm using Linux command line Ubuntu 16.0.4 using biblepayd package
I'm trying to determine if wallet.dat from staking computer is required. If it is, can we heat mine without unlocking wallet?
I seem to be submitting shares okay to pool.biblepay.org even with a locked wallet. I'm guessing my worker is tied to the account with cpid. I'm gonna try hot mining with a blank wallet.dat and see if I can do that.
Just want a more secure way to heat mine without all these wallet.dat on multiple computers. I heard a Russian got his bbp hacked this way
|
|
|
|
seasonw
|
|
May 19, 2018, 06:28:27 AM |
|
Thanks for the explanation. And since you mentioned coinsmarket, then what if crypto-bridge stopped service like coinsmarket did, will we get back the coins that we deposited to crypto-bridge wallet from the smart-contracts?
When you use a decentralized exchange, as I have always understood you are the one in control of the private keys. It solves the question in my head if we have access to private key of all coin addresses in the decentralized exchange. I have used crypto-bridge and escodex for some days, but I do not find a way to retrieve the private keys, anyone can enlighten me? If we really have control of coins that we put on decentralized exchange for trading, then I hope biblepay to list on one of the decentralized exchange too
|
|
|
|
ZhuldyzKaladinova
|
|
May 19, 2018, 06:37:17 AM |
|
How many active community members does BibePlay have? The thread seems to be on the top of the Announcements on Bitcointalk a lot of times in any given day. Makes you want to learn more about the project. Frankly I think the ANN here is a little too cluttered, @bible_pay you should try and tune it a bit. Good job on this coin I will make sure to check it out under the hood
|
|
|
|
slovakia
|
|
May 19, 2018, 06:58:08 AM |
|
ZhuldyzKaladinova 500+ miners and active users over 1000+ my tip
|
|
|
|
Lichtsucher
Jr. Member
Offline
Activity: 219
Merit: 3
|
|
May 19, 2018, 06:58:49 AM |
|
Hey Lich! Thank you for the heads up on the explorer, seems like BiblePay crashes randomly every few weeks, (Anyone know how I can automate it to restart Biblepay if BiblePay crashes and to delete the explorer/tmp/index.pid file as well?) Explorer is updated now I keep my biblepay processes running with systemd, works good so far, but they normally do not crash here About the index.pid, this should work in cron: /usr/bin/find [PATH]/tmp/index.pid -mmin +120 -delete It would delete the index.pid if it is older then 2 hours. Replace "[PATH]" with your explorer directory. There have been multiple repeat questions about mining that have popped up a few times the past 2 months, but Id have to dig back through the Discord, this thread and the biblepay forum thread, I plan to do that hopefully soon, I will report back!
Thx a lot, a small list would really help. By the way, I plan to replace all images in the guide to match the new design as fell. I will add both so its kind of short term vs long term thinking mindset You are absolutely right. Hope more people will understand this. Is the biblepay-central website open source?
Yes, you can find it on https://github.com/Lichtsucher/biblepaycentralI just added a Licence file. The guide itself is not part of the source code, as I used an embedded CMS to edit it. But I might change it, as the CMS doesn't work that great for this layout. By the way, you can see my systemd Biblepay service file there, too: https://github.com/Lichtsucher/biblepaycentral/blob/master/deploy/biblepayd-main.service
|
Purepool Biblepay Pool (https://www.purepool.org) Mining How-To (https://www.biblepay-central.org/en/mining-how-to/)
|
|
|
|
|
Dimarzio123
Newbie
Offline
Activity: 75
Merit: 0
|
|
May 19, 2018, 10:43:50 AM |
|
Hey Lich! Thank you for the heads up on the explorer, seems like BiblePay crashes randomly every few weeks, (Anyone know how I can automate it to restart Biblepay if BiblePay crashes and to delete the explorer/tmp/index.pid file as well?) Explorer is updated now I've been thinking on this for a project I have going on.. I'm going to write a shell script (when I can get to it) that checks the status of the daemon and will restart it if/when it fails. I'll post it here when i'm done. Or just script a task it to re-start it every 24H.......
|
|
|
|
Lichtsucher
Jr. Member
Offline
Activity: 219
Merit: 3
|
|
May 19, 2018, 10:59:48 AM |
|
Or just script a task it to re-start it every 24H.......
From my experience, such an approach often creates more problems than it solves. Doing something that doesn't needs to be done create more possibilities for failures. More so when there are stable and proven solutions, like systemd, to keep a daemon monitored and running.
|
Purepool Biblepay Pool (https://www.purepool.org) Mining How-To (https://www.biblepay-central.org/en/mining-how-to/)
|
|
|
Lichtsucher
Jr. Member
Offline
Activity: 219
Merit: 3
|
|
May 19, 2018, 11:12:47 AM |
|
Hi everyone, for a couple of days I'm trying to build a Ubuntu 18.04 Package via Launchpad, but it fails every time. My local builds work, but Launchpad can't create a package. I looked into the build log, but can't identify the reason why it fails: https://launchpadlibrarian.net/370942292/buildlog_ubuntu-bionic-amd64.biblepay_20180519122901-bionic1_BUILDING.txt.gzIndeed, I see the warnings and the failed message at the bottom, but why does it happen?
|
Purepool Biblepay Pool (https://www.purepool.org) Mining How-To (https://www.biblepay-central.org/en/mining-how-to/)
|
|
|
thesnat21
Jr. Member
Offline
Activity: 490
Merit: 4
|
|
May 19, 2018, 11:55:11 AM |
|
This is related to using newer than openssl 1.0.2 wallet/crypter.cpp: In function ‘bool BibleEncrypt(std::vector<unsigned char>, std::vector<unsigned char>&)’: wallet/crypter.cpp:196:17: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined EVP_CIPHER_CTX ctx; ^~~ wallet/crypter.cpp: In function ‘bool BibleDecrypt(const std::vector<unsigned char>&, std::vector<unsigned char>&)’: wallet/crypter.cpp:214:20: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined EVP_CIPHER_CTX ctx;
Newer ubuntu versions jump to 1.1 I believe, the types are declared for 1.0.2 only. I adjusted the code on my instance to compile but Rob warned its foolish ... I have not done any long-term testing on it however. If it hasn't been deleted, I posted the edits required for it to compile on the newer ubuntu a while back.
|
|
|
|
Lichtsucher
Jr. Member
Offline
Activity: 219
Merit: 3
|
|
May 19, 2018, 12:34:19 PM |
|
This is related to using newer than openssl 1.0.2 wallet/crypter.cpp: In function ‘bool BibleEncrypt(std::vector<unsigned char>, std::vector<unsigned char>&)’: wallet/crypter.cpp:196:17: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined EVP_CIPHER_CTX ctx; ^~~ wallet/crypter.cpp: In function ‘bool BibleDecrypt(const std::vector<unsigned char>&, std::vector<unsigned char>&)’: wallet/crypter.cpp:214:20: error: aggregate ‘EVP_CIPHER_CTX ctx’ has incomplete type and cannot be defined EVP_CIPHER_CTX ctx;
Newer ubuntu versions jump to 1.1 I believe, the types are declared for 1.0.2 only. I adjusted the code on my instance to compile but Rob warned its foolish ... I have not done any long-term testing on it however. If it hasn't been deleted, I posted the edits required for it to compile on the newer ubuntu a while back. The problem with OpenSSL sounds reasonable. I also just realized that my test build that worked didn't used ubuntu 18.04 but ubuntu 16.04. I'm running a new build right now, to test if it will fail again. @all users: Is there anybody who is using BiblePay with Ubuntu 18.04 right now? If so, have you downgraded openssl? Or solved it any other way?
|
Purepool Biblepay Pool (https://www.purepool.org) Mining How-To (https://www.biblepay-central.org/en/mining-how-to/)
|
|
|
thesnat21
Jr. Member
Offline
Activity: 490
Merit: 4
|
|
May 19, 2018, 01:46:49 PM |
|
The problem with OpenSSL sounds reasonable. I also just realized that my test build that worked didn't used ubuntu 18.04 but ubuntu 16.04. I'm running a new build right now, to test if it will fail again.
@all users: Is there anybody who is using BiblePay with Ubuntu 18.04 right now? If so, have you downgraded openssl? Or solved it any other way?
basically in the src/wallet/crypter.cpp 2 functions, BibleEncrypt and BibleDecrypt comment: EVP_CIPHER_CTX ctx; uncomment: EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); change the lines in the function remove the & from &ctx I don't belive anything in here has changed the last few commits, but compare just in case. open file: src/wallet/crypter.cpp change bool BibleEncrypt(std::vector<unsigned char> vchPlaintext, std::vector<unsigned char> &vchCiphertext) { if (!fKeySetBiblePay) LoadBibleKey("biblepay","eb5a781ea9da2ef36"); int nLen = vchPlaintext.size(); int nCLen = nLen + AES_BLOCK_SIZE, nFLen = 0; vchCiphertext = std::vector<unsigned char> (nCLen); EVP_CIPHER_CTX ctx; // EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); bool fOk = true; EVP_CIPHER_CTX_init(&ctx); if (fOk) fOk = EVP_EncryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, chKeyBiblePay, chIVBiblePay); if (fOk) fOk = EVP_EncryptUpdate(&ctx, &vchCiphertext[0], &nCLen, &vchPlaintext[0], nLen); if (fOk) fOk = EVP_EncryptFinal_ex(&ctx, (&vchCiphertext[0])+nCLen, &nFLen); EVP_CIPHER_CTX_cleanup(&ctx); if (!fOk) return false; vchCiphertext.resize(nCLen + nFLen); return true; }
bool BibleDecrypt(const std::vector<unsigned char>& vchCiphertext,std::vector<unsigned char>& vchPlaintext) { LoadBibleKey("biblepay","eb5a781ea9da2ef36"); int nLen = vchCiphertext.size(); int nPLen = nLen, nFLen = 0; EVP_CIPHER_CTX ctx; // EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); bool fOk = true; EVP_CIPHER_CTX_init(&ctx); if (fOk) fOk = EVP_DecryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, chKeyBiblePay, chIVBiblePay); if (fOk) fOk = EVP_DecryptUpdate(&ctx, &vchPlaintext[0], &nPLen, &vchCiphertext[0], nLen); if (fOk) fOk = EVP_DecryptFinal_ex(&ctx, (&vchPlaintext[0])+nPLen, &nFLen); EVP_CIPHER_CTX_cleanup(&ctx); if (!fOk) return false; vchPlaintext.resize(nPLen + nFLen); return true; } to: bool BibleEncrypt(std::vector<unsigned char> vchPlaintext, std::vector<unsigned char> &vchCiphertext) { if (!fKeySetBiblePay) LoadBibleKey("biblepay","eb5a781ea9da2ef36"); int nLen = vchPlaintext.size(); int nCLen = nLen + AES_BLOCK_SIZE, nFLen = 0; vchCiphertext = std::vector<unsigned char> (nCLen); // EVP_CIPHER_CTX ctx; EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); bool fOk = true; EVP_CIPHER_CTX_init(ctx); if (fOk) fOk = EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKeyBiblePay, chIVBiblePay); if (fOk) fOk = EVP_EncryptUpdate(ctx, &vchCiphertext[0], &nCLen, &vchPlaintext[0], nLen); if (fOk) fOk = EVP_EncryptFinal_ex(ctx, (&vchCiphertext[0])+nCLen, &nFLen); EVP_CIPHER_CTX_cleanup(ctx); if (!fOk) return false; vchCiphertext.resize(nCLen + nFLen); return true; }
bool BibleDecrypt(const std::vector<unsigned char>& vchCiphertext,std::vector<unsigned char>& vchPlaintext) { LoadBibleKey("biblepay","eb5a781ea9da2ef36"); int nLen = vchCiphertext.size(); int nPLen = nLen, nFLen = 0; //EVP_CIPHER_CTX ctx; EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); bool fOk = true; EVP_CIPHER_CTX_init(ctx); if (fOk) fOk = EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, chKeyBiblePay, chIVBiblePay); if (fOk) fOk = EVP_DecryptUpdate(ctx, &vchPlaintext[0], &nPLen, &vchCiphertext[0], nLen); if (fOk) fOk = EVP_DecryptFinal_ex(ctx, (&vchPlaintext[0])+nPLen, &nFLen); EVP_CIPHER_CTX_cleanup(ctx); if (!fOk) return false; vchPlaintext.resize(nPLen + nFLen); return true; }
|
|
|
|
thesnat21
Jr. Member
Offline
Activity: 490
Merit: 4
|
|
May 19, 2018, 02:13:42 PM |
|
Licht: While I have your attention, can you increase your apache header size... I'm still getting occasional 400 errors when submitting shares. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>400 Bad Request</title> </head><body> <h1>Bad Request</h1> <p>Your browser sent a request that this server could not understand.<br /> Size of a request header field exceeds server limit.</p> <hr> <address>Apache/2.4.18 (Ubuntu) Server at www.purepool.org Port 80</address> </body></html>
|
|
|
|
stevenzak
Newbie
Offline
Activity: 15
Merit: 0
|
|
May 19, 2018, 02:23:44 PM Last edit: May 19, 2018, 02:34:37 PM by stevenzak |
|
Hey guys, questions How to setup config on multiple computers correctly?
On Main computer same wallet and CPID
addnode=node.biblepay.org gen=1 genproclimit=-1 pool=https://pool.purepool.org workerid=BMBib2q6Rj6uerDu3ME7nThR6M1xid2PTu
On second computer same wallet and CPID
addnode=node.biblepay.org gen=1 genproclimit=-1 utxooverride=-1 pool=https://pool.purepool.org workerid=BAxTJUyynP5i2paTSe3JWa2XEw9nmc9SBg vs having the same worker id on both computers
Or is it better to solo mine (purepool has been down for me) addnode=node.biblepay.org gen=1 genprolimit=-1
second computer addnode=node.biblepay.org gen=1 genprolimit=-1 utxooverride=-1
can I use these settings for pool.biblepay? addnode=node.biblepay.org gen=1 genproclimit=-1 pool=https://pool.biblepay.org workerid=biblepayfirstcomputer
addnode=node.biblepay.org gen=1 genproclimit=-1 utxooverride=-1 pool=https://pool.biblepay.org workerid=biblepaysecondcomputer
How to clear error codes?
Just to be clear, I have Boinc installed on each computer same user, pass, and cpid on chain. Biblepay installed on each computer same wallet.dat Both Boinc and biblepay running
Error code: on pool.purepool.org Invalid_CPID Default 4 Illegal_CPID Default 16
Error code: on pool.biblepay.org CPID_SIGNATURE_INVALID CPID_HAS_NO_MAGNITUDE
I am getting the CPID, Magnitude, Task Weight, UTXO Weight with values. Also getmininginfo and exec getboincinfo on console shows up good.
Note: I believe these questions can also help out other people. Would be extremely helpful if someone can help me.
|
|
|
|
Lichtsucher
Jr. Member
Offline
Activity: 219
Merit: 3
|
|
May 19, 2018, 02:29:06 PM Last edit: May 19, 2018, 02:49:42 PM by Lichtsucher |
|
Licht: While I have your attention, can you increase your apache header size... I'm still getting occasional 400 errors when submitting shares.
Funny timing, I just increased it 10 minutes ago. Is your example new or older then 10 minutes?
|
Purepool Biblepay Pool (https://www.purepool.org) Mining How-To (https://www.biblepay-central.org/en/mining-how-to/)
|
|
|
|