No need to hold cs_main when serializing a struct to json
Fixes: #15925
No need to hold cs_main when serializing a struct to json
Fixes: #15925
AssertLockNotHeld(cs_main)
to those functions?
For reference #12153 (comment).
Concept ACK.
Does it make sense to add an
AssertLockNotHeld(cs_main)
to those functions?
Maybe EXCLUDES
annotation instead?
cs_main
inside the individual RPC functions was to allow optimizations such as this.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
ENTER_CRITICAL_SECTION
& LEAVE_CRITICAL_SECTION
instead LOCK
?
11+#include <sync.h>
12+
13+#include <stdint.h>
14+#include <vector>
15+
16+extern RecursiveMutex cs_main;