-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
@@ -113,6 +113,7 @@ fn setup_rpc_server(apis: Vec<&str>, deps: &Arc<Dependencies>) -> Server { | |||
server.add_delegate(EthcoreClient::new(&deps.miner, deps.logger.clone(), deps.settings.clone()).to_delegate()) | |||
}, | |||
"traces" => { | |||
// not adding to modules, since `traces` is not supported in geth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right! incorrect merge 👍
might be worth staging somewhere other than master or we'll be resyncing multiple times with the current DB changes... |
I can keep this pr up to date until there is a right moment to merge it |
btw can't the database be auto-upgraded somehow? |
Added migrations |
let mut result = H264::default(); | ||
result[0] = i as u8; | ||
unsafe { | ||
ptr::copy(hash.as_ptr(), result.as_mut_ptr().offset(1), 32); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer clone_from_slice
to unsafe code.
let result_key = &mut result[1 .. ];
result_key.clone_from_slice(hash);
…problem from trace/db.rs
} | ||
|
||
struct CacheManager { | ||
cache_usage: VecDeque<HashSet<CacheID>>, | ||
in_use: HashSet<CacheID>, | ||
} | ||
|
||
impl bc::group::BloomGroupDatabase for BlockChain { | ||
fn blooms_at(&self, position: &bc::group::GroupPosition) -> Option<bc::group::BloomGroup> { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
superfluous line
requires #996 and #997
small fixes, optimizations and removing duplicated logic
blockchain::BlockChainConfig
moved to its own file and renamed to justConfig
chainfilter
module and everything related to it, eg.blockchain::BloomIndexer
. Usebloomchain
crate instead.BlocksBlooms
database keys are smaller - 6 bytes (33 bytes before).BlockHashes
database keys are smaller - 5 bytes( 33 bytes before).6.0