Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
destream-blockchain
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
destream-blockchain
Commits
ba5de87c
Commit
ba5de87c
authored
Dec 25, 2019
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logs for transaction lifecycle
parent
fbda97d6
Pipeline
#1127
passed with stage
in 3 minutes and 49 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
DeStreamMempoolValidator.cs
...s.Bitcoin.Features.MemoryPool/DeStreamMempoolValidator.cs
+2
-0
MempoolBehavior.cs
...es/Stratis.Bitcoin.Features.MemoryPool/MempoolBehavior.cs
+1
-0
DeStreamPosMinting.cs
...atis.Bitcoin.Features.Miner/Staking/DeStreamPosMinting.cs
+3
-0
No files found.
Sources/Stratis.Bitcoin.Features.MemoryPool/DeStreamMempoolValidator.cs
View file @
ba5de87c
...
@@ -103,6 +103,8 @@ namespace Stratis.Bitcoin.Features.MemoryPool
...
@@ -103,6 +103,8 @@ namespace Stratis.Bitcoin.Features.MemoryPool
this
.
PerformanceCounter
.
SetMempoolSize
(
state
.
MempoolSize
);
this
.
PerformanceCounter
.
SetMempoolSize
(
state
.
MempoolSize
);
this
.
PerformanceCounter
.
SetMempoolDynamicSize
(
state
.
MempoolDynamicSize
);
this
.
PerformanceCounter
.
SetMempoolDynamicSize
(
state
.
MempoolDynamicSize
);
this
.
PerformanceCounter
.
AddHitCount
(
1
);
this
.
PerformanceCounter
.
AddHitCount
(
1
);
this
.
logger
.
LogInformation
(
"Transaction {txId} validated by mempool"
,
tx
.
GetHash
());
});
});
}
}
...
...
Sources/Stratis.Bitcoin.Features.MemoryPool/MempoolBehavior.cs
View file @
ba5de87c
...
@@ -382,6 +382,7 @@ namespace Stratis.Bitcoin.Features.MemoryPool
...
@@ -382,6 +382,7 @@ namespace Stratis.Bitcoin.Features.MemoryPool
{
{
this
.
filterInventoryKnown
.
Add
(
trxHash
);
this
.
filterInventoryKnown
.
Add
(
trxHash
);
}
}
this
.
logger
.
LogInformation
(
"Received transaction {txId}. Transaction hex: '{txHex}'"
,
trxHash
,
trx
.
ToHex
());
this
.
logger
.
LogTrace
(
"Added transaction ID '{0}' to known inventory filter."
,
trxHash
);
this
.
logger
.
LogTrace
(
"Added transaction ID '{0}' to known inventory filter."
,
trxHash
);
var
state
=
new
MempoolValidationState
(
true
);
var
state
=
new
MempoolValidationState
(
true
);
...
...
Sources/Stratis.Bitcoin.Features.Miner/Staking/DeStreamPosMinting.cs
View file @
ba5de87c
...
@@ -103,6 +103,9 @@ namespace Stratis.Bitcoin.Features.Miner.Staking
...
@@ -103,6 +103,9 @@ namespace Stratis.Bitcoin.Features.Miner.Staking
"Node staking with {0} ({1:0.00} % of the network weight {2}), est. time to find new block is {3}."
,
"Node staking with {0} ({1:0.00} % of the network weight {2}), est. time to find new block is {3}."
,
new
Money
(
ourWeight
),
ourPercent
,
new
Money
(
this
.
networkWeight
),
TimeSpan
.
FromSeconds
(
expectedTime
));
new
Money
(
ourWeight
),
ourPercent
,
new
Money
(
this
.
networkWeight
),
TimeSpan
.
FromSeconds
(
expectedTime
));
this
.
logger
.
LogInformation
(
"Staking block with transactions: {txIds}"
,
block
.
Transactions
.
Select
(
p
=>
p
.
GetHash
()).
ToList
());
this
.
rpcGetStakingInfoModel
.
ResumeStaking
(
ourWeight
,
expectedTime
);
this
.
rpcGetStakingInfoModel
.
ResumeStaking
(
ourWeight
,
expectedTime
);
long
minimalAllowedTime
=
chainTip
.
Header
.
Time
+
1
;
long
minimalAllowedTime
=
chainTip
.
Header
.
Time
+
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment