143 | @@ -144,8 +144,16 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock()
144 |
145 | int nPackagesSelected = 0;
146 | int nDescendantsUpdated = 0;
147 | - if (m_mempool) {
148 | + if (m_options.use_mempool) {
149 | addPackageTxs(nPackagesSelected, nDescendantsUpdated);
150 | + } else if (m_options.txs.size() > 0) {
151 | + EXCLUSIVE_LOCKS_REQUIRED(m_mempool->cs);
19:24:04.713] /ci_container_base/src/node/miner.cpp:150:9: error: 'exclusive_locks_required' attribute cannot be applied to a statement
[19:24:04.713] 150 | EXCLUSIVE_LOCKS_REQUIRED(m_mempool->cs);
[19:24:04.713] | ^ ~
[19:24:04.713] /ci_container_base/src/threadsafety.h:31:54: note: expanded from macro 'EXCLUSIVE_LOCKS_REQUIRED'
[19:24:04.713] 31 | #define EXCLUSIVE_LOCKS_REQUIRED(...) __attribute__((exclusive_locks_required(__VA_ARGS__)))