<p>I had my Core Lightning node crash a few times because Bitcoin Core didn't respond in time to a rpc-call. I found that this happens when new blocks are generated quickly, like below:</p>
<p>849683  2024-06-27 14:46:02</p>
<p>849682  2024-06-27 14:44:11</p>
<p>849681  2024-06-27 14:43:30</p>
<p>3 blocks are found within 3 minutes, so 10 times as fast as on average (which can happen and is normal).</p>
<p>I increased my cpu-limit to mitigate the problem but that's beside my question below:</p>
<p>Does Bitcoin Core process rpc-calls during or in between incoming new blocks validation? What has precedence? How does it work in (more) detail?</p>

CC BY-SA 4.0
2024-06-28T15:57:54.873Z
Possibly related: Increase timeout in client - see my answer to [seemingly unrelated question](https://bitcoin.stackexchange.com/q/121723/13866) using `timeout=120` in Python RPC client. See `bitcoin-rpcclienttimeout` in https://docs.corelightning.org/reference/lightningd-config
RedGrittyBrick
CC BY-SA 4.0
2024-06-28T16:59:00.827Z
Thanks RedGrittyBrick, this is very useful on the CLN side
sumBTC
<bitcoin-core><json-rpc><block><core-lightning><validation>
Will Bitcoin Core still respond quickly to a rpc-call when new blocks come in fast?
sumBTC
# Will Bitcoin Core still respond quickly to a rpc-call when new blocks come in fast?

(Asked by: username_0 on 2024-06-28)

I had my Core Lightning node crash a few times because Bitcoin Core didn't respond in time to a rpc-call. I found that this happens when new blocks are generated quickly, like below:

849683 2024-06-27 14:46:02

849682 2024-06-27 14:44:11

849681 2024-06-27 14:43:30

3 blocks are found within 3 minutes, so 10 times as fast as on average (which can happen and is normal).

I increased my cpu-limit to mitigate the problem but that's beside my question below:

Does Bitcoin Core process rpc-calls during or in between incoming new blocks validation? What has precedence? How does it work in (more) detail?

**Tags:** bitcoin-core, json-rpc, block, core-lightning, validation

> **Comments:**
> **username_1**: Possibly related: Increase timeout in client - see my answer to [seemingly unrelated question](https://bitcoin.stackexchange.com/q/121723/13866) using `timeout=120` in Python RPC client. See `bitcoin-rpcclienttimeout` in https://docs.corelightning.org/reference/lightningd-config  
> **username_0**: Thanks username_1, this is very useful on the CLN side  

---

## 0 answers

