Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parity-bitcoin
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
Model registry
Operate
Environments
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
parity-bitcoin
Commits
faebbc38
Commit
faebbc38
authored
5 years ago
by
Svyatoslav Nikolsky
Browse files
Options
Downloads
Patches
Plain Diff
fixed grumbles
parent
4a4c38be
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sync/src/blocks_writer.rs
+2
-3
2 additions, 3 deletions
sync/src/blocks_writer.rs
with
2 additions
and
3 deletions
sync/src/blocks_writer.rs
+
2
−
3
View file @
faebbc38
use
std
::
collections
::
VecDeque
;
use
std
::
sync
::
Arc
;
use
parking_lot
::
{
Mutex
,
RwLock
}
;
use
parking_lot
::
Mutex
;
use
chain
;
use
storage
;
use
miner
::
MemoryPool
;
use
network
::
ConsensusParams
;
use
primitives
::
hash
::
H256
;
use
super
::
Error
;
...
...
@@ -101,7 +100,7 @@ impl BlocksWriterSinkData {
/// Create new blocks writer data
pub
fn
new
(
storage
:
StorageRef
)
->
Self
{
BlocksWriterSinkData
{
chain
:
Chain
::
new
(
storage
,
Arc
::
new
(
RwLock
::
new
(
MemoryPool
::
new
())
)),
chain
:
Chain
::
new
(
storage
,
Default
::
default
(
)),
err
:
None
,
}
}
...
...
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