RPC: decodescript RPC call holds cs_main #7012

issue pstratem opened this issue on November 13, 2015
  1. pstratem commented at 10:08 PM on November 13, 2015: contributor

    There doesn't seem to be any reason for it to hold this lock.

    Thoughts?

  2. pstratem commented at 10:10 PM on November 13, 2015: contributor

    @CodeShark 4401b2d7 why?

  3. pstratem commented at 10:18 PM on November 13, 2015: contributor

    @petertodd ping

  4. petertodd commented at 10:21 PM on November 13, 2015: contributor

    Fixed in #7013

  5. CodeShark commented at 10:22 PM on November 13, 2015: contributor

    @pstratem I didn't actually go through every single call and check whether it was actually thread-safe.

  6. petertodd commented at 10:25 PM on November 13, 2015: contributor

    @CodeShark I just did that, although I'm in a bit of a rush so I may have missed something!

  7. CodeShark commented at 2:51 AM on November 14, 2015: contributor

    @petertodd thanks. The purpose of https://github.com/bitcoin/bitcoin/commit/4401b2d7c52e0f3841225369fb0d10767c51aaa2 wasn't to completely fix the locks - it was just to remove dependencies and provide for the ability to make the locks more granular without changing any behavior. There's still plenty that could be done to improve concurrency.

  8. pstratem commented at 2:55 AM on November 14, 2015: contributor

    @CodeShark ah i see

  9. laanwj commented at 7:23 AM on November 14, 2015: member

    @pstratem I didn't actually go through every single call and check whether it was actually thread-safe.

    This was the longer-term goal of pushing down the locks in #5711, but for the first step it was much easier to review when doing a simple mechanical step, keeping the functionality the same. If it changed the locking for every single RPC call it would probably never have been merged.

  10. laanwj added the label RPC on Nov 14, 2015
  11. laanwj commented at 3:21 PM on November 16, 2015: member

    Solved by #7013

  12. laanwj closed this on Nov 16, 2015

  13. 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-13 15:15 UTC

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