Tamas Blummer [ARCHIVE] on Nostr: 📅 Original date posted:2015-08-14 📝 Original message:We integrated libconsensus ...
📅 Original date posted:2015-08-14
📝 Original message:We integrated libconsensus into bits of proof. It works well, in-line for all test cases with our Java engine and is about 50% faster on a single thread.
The performance advantage unfortunatelly reverses if libconsensus is executed on several threads simultaneously as we do with the Java engine, since an error:
Assertion failed: (pkey != NULL), function CECKey, file ecwrapper.cpp, line 96.
arises under that stress.
I guess that the cause is that thread callbacks as advised for OpenSSL on
https://www.openssl.org/docs/crypto/threads.html are not registered.
Registering those however would require access to OpenSSL functions, not exported from the lib.
I’d be thankful for a pointer to a workaround.
Tamas Blummer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150814/35f728b8/attachment-0001.sig>
Published at
2023-06-07 17:35:07Event JSON
{
"id": "454d1f60716afb03cdab1238df83405850af7586d5a13adf99403dfab60553d3",
"pubkey": "c632841665fccdabf021322b1d969539c9c1f829ceed38844fea24e8512962d7",
"created_at": 1686159307,
"kind": 1,
"tags": [
[
"e",
"5e87c1c5b6b95d03c7c3f314616cbba90476f1e9f2b72c5259bffe6fc7f08cb9",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "📅 Original date posted:2015-08-14\n📝 Original message:We integrated libconsensus into bits of proof. It works well, in-line for all test cases with our Java engine and is about 50% faster on a single thread.\n\nThe performance advantage unfortunatelly reverses if libconsensus is executed on several threads simultaneously as we do with the Java engine, since an error:\n\n\tAssertion failed: (pkey != NULL), function CECKey, file ecwrapper.cpp, line 96.\n\narises under that stress.\n\nI guess that the cause is that thread callbacks as advised for OpenSSL on https://www.openssl.org/docs/crypto/threads.html are not registered.\nRegistering those however would require access to OpenSSL functions, not exported from the lib.\n\nI’d be thankful for a pointer to a workaround.\n\nTamas Blummer\n-------------- next part --------------\nA non-text attachment was scrubbed...\nName: signature.asc\nType: application/pgp-signature\nSize: 496 bytes\nDesc: Message signed with OpenPGP using GPGMail\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150814/35f728b8/attachment-0001.sig\u003e",
"sig": "ca26f3da58977fa6e24792e51a1f12eb4dfdf27ec70b198934a83b7809f60120524bac1b3e2acd408bf26d5576536074c730a52b4a022d59c456feb649cf8cba"
}