mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 19:25:51 +00:00
Make tx() function against a read-only postgres instance.
This commit is contained in:
@@ -792,11 +792,7 @@ CREATE OR REPLACE FUNCTION tx (
|
||||
_in_trans_id bytea
|
||||
) RETURNS jsonb AS $$
|
||||
DECLARE
|
||||
_min_ledger bigint := min_ledger();
|
||||
_min_seq bigint := (SELECT ledger_seq
|
||||
FROM ledgers
|
||||
WHERE ledger_seq = _min_ledger
|
||||
FOR SHARE);
|
||||
_min_seq bigint := min_ledger();
|
||||
_max_seq bigint := max_ledger();
|
||||
_ledger_seq bigint;
|
||||
_nodestore_hash bytea;
|
||||
|
||||
Reference in New Issue
Block a user