Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Scheduling Scripts
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xx network
Scheduling Scripts
Merge requests
!7
fix crash
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
fix crash
hotfix/Crash
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
fix crash
Jake Taylor
requested to merge
hotfix/Crash
into
master
Nov 19, 2021
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
92b11123
1 commit,
Nov 19, 2021
1 file
+
5
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
points.py
+
5
−
1
View file @ 92b11123
Edit in single-file editor
Open in Web IDE
Show full file
@@ -12,7 +12,7 @@ import logging as log
import
psycopg2
import
sys
import
os
from
substrateinterface
import
SubstrateInterface
,
Keypair
from
substrateinterface
import
SubstrateInterface
,
Keypair
,
exceptions
import
time
#############
@@ -391,6 +391,10 @@ def push_point_info(substrate, call_function, keypair, wallet_points):
extrinsic
=
substrate
.
create_signed_extrinsic
(
call
=
call
,
keypair
=
keypair
)
try
:
receipt
=
substrate
.
submit_extrinsic
(
extrinsic
,
wait_for_inclusion
=
True
)
except
exceptions
.
SubstrateRequestException
as
e
:
# Force a restart of the chain connection at the top level and retry
log
.
error
(
f
"
Failed to push_point_info:
{
e
}
"
)
raise
ConnectionError
(
"
Invalid RPC request
"
)
except
Exception
as
e
:
log
.
error
(
f
"
Failed to push_point_info:
{
extrinsic
}
"
)
raise
e
Loading