Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter-squid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
duniter-squid
Commits
4cbbb829
Commit
4cbbb829
authored
10 months ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
fix: increase node memory
parent
69100f09
No related branches found
No related tags found
2 merge requests
!21
Refac v1 history
,
!20
Add certifications date
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
commands.json
+7
-2
7 additions, 2 deletions
commands.json
package.json
+1
-1
1 addition, 1 deletion
package.json
src/genesis/genesis_update_blockv1.ts
+3
-1
3 additions, 1 deletion
src/genesis/genesis_update_blockv1.ts
with
11 additions
and
4 deletions
commands.json
+
7
−
2
View file @
4cbbb829
...
...
@@ -102,12 +102,17 @@
},
"process"
:
{
"description"
:
"Load .env and start the squid processor"
,
"cmd"
:
[
"node"
,
"--require=dotenv/config"
,
"lib/main.js"
]
"cmd"
:
[
"node"
,
"--require=dotenv/config"
,
"-max-old-space-size=4096"
,
"lib/main.js"
]
},
"process:prod"
:
{
"description"
:
"Start the squid processor"
,
"deps"
:
[
"migration:apply"
],
"cmd"
:
[
"node"
,
"lib/main.js"
],
"cmd"
:
[
"node"
,
"-max-old-space-size=4096"
,
"lib/main.js"
],
"hidden"
:
true
},
"check-updates"
:
{
...
...
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
4cbbb829
{
"name"
:
"squid"
,
"version"
:
"0.2.
1
"
,
"version"
:
"0.2.
2
"
,
"private"
:
true
,
"engines"
:
{
"node"
:
">=20"
...
...
This diff is collapsed.
Click to expand it.
src/genesis/genesis_update_blockv1.ts
+
3
−
1
View file @
4cbbb829
...
...
@@ -102,9 +102,11 @@ export class BlocksV1Reader {
}
private
updateCert
(
cert
:
Cert
,
blockV1
:
BlockParsed
,
eventV1
:
Event
):
void
{
let
isCreation
=
false
;
if
(
cert
.
createdOn
===
0
)
{
cert
.
createdOn
=
blockV1
.
height
;
cert
.
createdIn
=
eventV1
;
isCreation
=
true
;
}
cert
.
updatedOn
=
blockV1
.
height
;
cert
.
updatedIn
=
eventV1
;
...
...
@@ -112,7 +114,7 @@ export class BlocksV1Reader {
id
:
`
${
cert
.
id
}
-
${
blockV1
.
height
}
`
,
cert
,
blockNumber
:
blockV1
.
height
,
eventType
:
EventType
.
Renewal
,
eventType
:
isCreation
?
EventType
.
Creation
:
EventType
.
Renewal
,
event
:
eventV1
,
});
this
.
certsEvents
.
push
(
certEvent
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment