fix getblocktemplate lock issue #5754

pull jonasschnelli wants to merge 1 commits into bitcoin:master from jonasschnelli:2015/02/rpc_locks_fix_5711 changing 1 files +0 −8
  1. jonasschnelli commented at 3:34 PM on February 4, 2015: contributor

    getblocktemplate didn't have a wallet lock before #5711 and IMO there is no need for LEAVE/ENTER critical section.

  2. fix getblocktemplate lock issue
    getblocktemplate didn't have a wallet lock before #5711 and IMO there is no need for LEAVE/ENTER critical section.
    17115d0a34
  3. laanwj commented at 3:44 PM on February 4, 2015: member

    You have it the wrong way around: getblocktemplate did have a wallet lock before #5711 (every RPC call got both the wallet lock and the main lock), but it now no longer takes it, so it also doesn't need to release it. Good catch anyway, ACK.

  4. sdaftuar commented at 3:46 PM on February 4, 2015: member

    Looks like this fixes getblocktemplate_longpoll.py, but getblocktemplate_proposals.py fails (as it also does after #5711, I just realized).

    EDIT: Actually this other test may have been broken for a while...?

  5. laanwj commented at 4:04 PM on February 4, 2015: member

    Hmm - The problem in getblocktemplate_proposals.py indeed seems to be unrelated to #5711. Bitcoin thinks it is in initial block download, and refuses to execute getblocktemplate.

  6. laanwj commented at 4:16 PM on February 4, 2015: member

    Verified that the problem with proposals exists at least as far back as 631e698, so I'm going to go ahead and merge this - that problem will have to be solved separately.

  7. laanwj merged this on Feb 4, 2015
  8. laanwj closed this on Feb 4, 2015

  9. laanwj referenced this in commit 1c4e3f99f0 on Feb 4, 2015
  10. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 12:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me