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 15:46:58Event JSON
{
"id": "a129063ac0ef1bf3d38136f20e2671887645c8563acf34a87b6625ca0da5dc5d",
"pubkey": "c632841665fccdabf021322b1d969539c9c1f829ceed38844fea24e8512962d7",
"created_at": 1686152818,
"kind": 1,
"tags": [
[
"e",
"f9cdbcb2f8408a8617a32357a9cd9ec7781e0a2acb315808f6e58178dd97a111",
"",
"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": "b3e3d4242df757efe7d53973494694ee0c675c779bfa14fec24d438063df8236a808980b34ea2b271dfe580a336ba9071c197bd38a321c1ce7d4a4dc61582421"
}