Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
parity
Mirrored projects
polkadot-sdk
Commits
26a53ac0
Commit
26a53ac0
authored
5 years ago
by
Nikolay Volf
Committed by
Tomasz Drwięga
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add debug logs (#4657)
parent
482ca522
Branches
gh-readonly-queue/master/pr-7243-7b0ac746e4fc26a9959b0dc1aeac2db32d3f289f
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
substrate/client/basic-authorship/src/basic_authorship.rs
+1
-0
1 addition, 0 deletions
substrate/client/basic-authorship/src/basic_authorship.rs
substrate/client/transaction-pool/graph/src/validated_pool.rs
+4
-1
4 additions, 1 deletion
...trate/client/transaction-pool/graph/src/validated_pool.rs
with
5 additions
and
1 deletion
substrate/client/basic-authorship/src/basic_authorship.rs
+
1
−
0
View file @
26a53ac0
...
@@ -205,6 +205,7 @@ impl<Block, B, E, RA, A> ProposerInner<Block, SubstrateClient<B, E, Block, RA>,
...
@@ -205,6 +205,7 @@ impl<Block, B, E, RA, A> ProposerInner<Block, SubstrateClient<B, E, Block, RA>,
let
pending_iterator
=
self
.transaction_pool
.ready
();
let
pending_iterator
=
self
.transaction_pool
.ready
();
debug!
(
"Attempting to push transactions from the pool."
);
debug!
(
"Attempting to push transactions from the pool."
);
debug!
(
"Pool status: {:?}"
,
self
.transaction_pool
.status
());
for
pending_tx
in
pending_iterator
{
for
pending_tx
in
pending_iterator
{
if
(
self
.now
)()
>
deadline
{
if
(
self
.now
)()
>
deadline
{
debug!
(
debug!
(
...
...
This diff is collapsed.
Click to expand it.
substrate/client/transaction-pool/graph/src/validated_pool.rs
+
4
−
1
View file @
26a53ac0
...
@@ -470,12 +470,15 @@ impl<B: ChainApi> ValidatedPool<B> {
...
@@ -470,12 +470,15 @@ impl<B: ChainApi> ValidatedPool<B> {
return
vec!
[]
return
vec!
[]
}
}
debug!
(
target
:
"txpool"
,
"Removing invalid transactions: {:?}"
,
hashes
);
// temporarily ban invalid transactions
// temporarily ban invalid transactions
debug!
(
target
:
"txpool"
,
"Banning invalid transactions: {:?}"
,
hashes
);
self
.rotator
.ban
(
&
time
::
Instant
::
now
(),
hashes
.iter
()
.cloned
());
self
.rotator
.ban
(
&
time
::
Instant
::
now
(),
hashes
.iter
()
.cloned
());
let
invalid
=
self
.pool
.write
()
.remove_subtree
(
hashes
);
let
invalid
=
self
.pool
.write
()
.remove_subtree
(
hashes
);
debug!
(
target
:
"txpool"
,
"Removed invalid transactions: {:?}"
,
invalid
);
let
mut
listener
=
self
.listener
.write
();
let
mut
listener
=
self
.listener
.write
();
for
tx
in
&
invalid
{
for
tx
in
&
invalid
{
listener
.invalid
(
&
tx
.hash
,
true
);
listener
.invalid
(
&
tx
.hash
,
true
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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