willcl-ark 0ba11cf908
rpc: move UniValue in blockToJSON
Without explicitly declaring the move, these UniValues get copied,
causing increased memory usage. Fix this by explicitly moving the
UniValue objects.

Used by `rest_block` and `getblock` RPC.

Github-Pull: #30094
Rebased-From: b77bad309e92f176f340598eec056eb7bff86f5f
2024-05-14 08:14:33 +08:00
..
2024-02-15 19:46:45 +01:00
2022-03-11 17:46:58 +01:00
2023-12-11 18:22:13 +01:00
2024-02-15 10:55:47 +01:00