jan at uos.de [ARCHIVE] on Nostr: š
Original date posted:2011-07-04 šļø Summary of this message: Jan Vornberger ...
š
Original date posted:2011-07-04
šļø Summary of this message: Jan Vornberger updated that he fixed the issue with "sendfrom" by changing the cache rebuild approach, and pushed the changes to the Github branch.
š Original message:Another quick update:
On Sun, Jul 03, 2011 at 06:29:05PM +0200, Jan Vornberger wrote:
> as now "sendfrom" starts acting up and I have to look into that
> next.
I realized why this happens: Sendfrom triggers a rebuild of the cache
and couldn't return before the rebuild was complete.
So I changed the approach slightly: A complete rebuild of the cache will
only happen on new blocks (in case reorgs happen) whereas on new wallet
transactions the cache will just be adjusted incrementally. Seems to
work fine so far (every 4000 calls or so I double check the cache by
running a full calculation and compare the results. No mismatch happened
so far). The changes are pushed to the github branch I linked to.
One caveat I realized: The cache will not work correctly with the RPC
command "move" as I haven't implemented the necessary adjustments.
Shouldn't be too difficult, but since I don't use that command, I
haven't done this (yet).
Regards!
Jan
Published at
2023-06-07 02:02:21Event JSON
{
"id": "cf271ca6bf27cd998a0fa0f7a4781fc92e424b8a69e452afe69dee35677fc280",
"pubkey": "05766de3bdda2f0a97052d09e34a9d2cdb31ce60dd4471cbb27acbdde0bc755b",
"created_at": 1686103341,
"kind": 1,
"tags": [
[
"e",
"8a8ef3868d0abf073dd11d1aa691d5696fe7b0b33b26fd8bd6e9c5d50e104093",
"",
"root"
],
[
"e",
"c118984bd343bb29d5cb56ed44f9f4acbd9b2faf1df6b3e920b56c3a3581fb3a",
"",
"reply"
],
[
"p",
"afb2dfc96bfe44c3ee8de2048adba7c222ff46515aae0adcf3c1ba22c37483b8"
]
],
"content": "š
Original date posted:2011-07-04\nšļø Summary of this message: Jan Vornberger updated that he fixed the issue with \"sendfrom\" by changing the cache rebuild approach, and pushed the changes to the Github branch.\nš Original message:Another quick update:\n\nOn Sun, Jul 03, 2011 at 06:29:05PM +0200, Jan Vornberger wrote:\n\u003e as now \"sendfrom\" starts acting up and I have to look into that\n\u003e next.\n\nI realized why this happens: Sendfrom triggers a rebuild of the cache\nand couldn't return before the rebuild was complete.\n\nSo I changed the approach slightly: A complete rebuild of the cache will\nonly happen on new blocks (in case reorgs happen) whereas on new wallet\ntransactions the cache will just be adjusted incrementally. Seems to\nwork fine so far (every 4000 calls or so I double check the cache by\nrunning a full calculation and compare the results. No mismatch happened\nso far). The changes are pushed to the github branch I linked to.\n\nOne caveat I realized: The cache will not work correctly with the RPC\ncommand \"move\" as I haven't implemented the necessary adjustments.\nShouldn't be too difficult, but since I don't use that command, I\nhaven't done this (yet).\n\nRegards!\nJan",
"sig": "5815d8098777682a2985b84a8f5187d1795e18861d19217dc606773d3627cfaf5aaa359cf3e0659db0634c81cf9c6024bd6523700f7a475b704fae796a9ef3d3"
}