Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Dojo
addrindexrs
Commits
80c10659
Commit
80c10659
authored
Nov 04, 2019
by
kenshin-samourai
Browse files
remove functions related to best header
parent
3952c679
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
src/index.rs
src/index.rs
+0
-5
src/query.rs
src/query.rs
+0
-5
No files found.
src/index.rs
View file @
80c10659
...
...
@@ -297,11 +297,6 @@ impl Index {
*
headers
=
read_indexed_headers
(
store
);
}
pub
fn
best_header
(
&
self
)
->
Option
<
HeaderEntry
>
{
let
headers
=
self
.headers
.read
()
.unwrap
();
headers
.header_by_blockhash
(
&
headers
.tip
())
.cloned
()
}
pub
fn
get_header
(
&
self
,
height
:
usize
)
->
Option
<
HeaderEntry
>
{
self
.headers
.read
()
...
...
src/query.rs
View file @
80c10659
...
...
@@ -303,11 +303,6 @@ impl Query {
})
}
pub
fn
get_best_header
(
&
self
)
->
Result
<
HeaderEntry
>
{
let
last_header
=
self
.app
.index
()
.best_header
();
Ok
(
last_header
.chain_err
(||
"no headers indexed"
)
?
.clone
())
}
pub
fn
update_mempool
(
&
self
)
->
Result
<
()
>
{
self
.tracker
.write
()
.unwrap
()
.update
(
self
.app
.daemon
())
}
...
...
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