pub const GET_NEXT_BLOCK_ADDRESSES: &str = "SELECT\n b1.block_address\nFROM\n block b1\n LEFT JOIN block b2 ON b1.number = b2.number + 1\nWHERE\n b2.block_address = :current_block\n";
Expand description
SELECT
b1.block_address
FROM
block b1
LEFT JOIN block b2 ON b1.number = b2.number + 1
WHERE
b2.block_address = :current_block