Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bam #193

Closed
wants to merge 1 commit into from
Closed

bam #193

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/routes/network/eras.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ async function route(fastify: FastifyInstance) {
SQLQuery.get('network_protocols'),
);

clientDbSync.release();

// First summary item is Byron era parameters
const first = {
start: {
Expand Down Expand Up @@ -146,6 +144,7 @@ async function route(fastify: FastifyInstance) {

return reply.send(summary);
} catch (error) {
console.error(error);
if (clientDbSync) {
clientDbSync.release();
}
Expand Down
4 changes: 1 addition & 3 deletions src/sql/governance/proposals_proposal_parameters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,4 @@ SELECT encode(tx.hash, 'hex') AS "tx_hash",
FROM gov_action_proposal gap
JOIN tx ON (gap.tx_id = tx.id)
JOIN epoch_param ep ON (gap.param_proposal = ep.id)
LEFT JOIN cost_model cm ON (ep.cost_model_id = cm.id)
WHERE encode(tx.hash, 'hex') = $1
AND gap.index = $2
LEFT JOIN cost_model cm ON (ep.cost_model_id = cm.id);
Loading