Skip to content

Commit

Permalink
fix: block start (#471)
Browse files Browse the repository at this point in the history
Co-authored-by: Maycon Amaro <[email protected]>
  • Loading branch information
renancloudwalk and mayconamaroCW authored Mar 28, 2024
1 parent 3e31a7d commit 148ad84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/schema/001-init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ BEGIN
EXECUTE 'CREATE INDEX neo_account_slots_p' || partition_suffix || '_block_number_desc_idx ON public.neo_account_slots_p' || partition_suffix || ' (block_number DESC)';

-- Update range for the next partition, incrementing by 5M each time
start_block := end_block + 1;
start_block := end_block;
end_block := end_block + 7862400; -- Increment by a quarter considering 1 block = 1 second
END LOOP;
END$$;
Expand Down

0 comments on commit 148ad84

Please sign in to comment.