Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'alpha' into cncli-patch-master
- Loading branch information
Showing
67 changed files
with
1,572 additions
and
748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
DB_NAME=cexplorer | ||
|
||
echo "$(date +%F_%H:%M:%S) Capturing last epochs' snapshot..." | ||
psql ${DB_NAME} -qbt -c "CALL GREST.CAPTURE_LAST_EPOCH_SNAPSHOT();" 2>&1 1>/dev/null | ||
echo "$(date +%F_%H:%M:%S) Job done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
CREATE FUNCTION grest.genesis () | ||
RETURNS TABLE ( | ||
NETWORKMAGIC varchar, | ||
NETWORKID varchar, | ||
ACTIVESLOTCOEFF varchar, | ||
UPDATEQUORUM varchar, | ||
MAXLOVELACESUPPLY varchar, | ||
EPOCHLENGTH varchar, | ||
SYSTEMSTART integer, | ||
SLOTSPERKESPERIOD varchar, | ||
SLOTLENGTH varchar, | ||
MAXKESREVOLUTIONS varchar, | ||
SECURITYPARAM varchar, | ||
ALONZOGENESIS varchar | ||
) | ||
LANGUAGE PLPGSQL | ||
AS $$ | ||
BEGIN | ||
RETURN QUERY | ||
SELECT | ||
g.NETWORKMAGIC, | ||
g.NETWORKID, | ||
g.ACTIVESLOTCOEFF, | ||
g.UPDATEQUORUM, | ||
g.MAXLOVELACESUPPLY, | ||
g.EPOCHLENGTH, | ||
EXTRACT(epoch from g.SYSTEMSTART::timestamp)::integer, | ||
g.SLOTSPERKESPERIOD, | ||
g.SLOTLENGTH, | ||
g.MAXKESREVOLUTIONS, | ||
g.SECURITYPARAM, | ||
g.ALONZOGENESIS | ||
FROM | ||
grest.genesis g; | ||
END; | ||
$$; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.