Prioritizing re-imported transactions (#2372)
* Prioritizing re-imported transactions * Fixing compilation on beta
This commit is contained in:
parent
0bcf035103
commit
38b191d4b3
|
@ -64,11 +64,11 @@ pub fn clean_0x(s: &str) -> &str {
|
||||||
|
|
||||||
macro_rules! impl_hash {
|
macro_rules! impl_hash {
|
||||||
($from: ident, $size: expr) => {
|
($from: ident, $size: expr) => {
|
||||||
#[derive(Eq)]
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
/// Unformatted binary data of fixed length.
|
/// Unformatted binary data of fixed length.
|
||||||
pub struct $from (pub [u8; $size]);
|
pub struct $from (pub [u8; $size]);
|
||||||
|
|
||||||
|
|
||||||
impl From<[u8; $size]> for $from {
|
impl From<[u8; $size]> for $from {
|
||||||
fn from(bytes: [u8; $size]) -> Self {
|
fn from(bytes: [u8; $size]) -> Self {
|
||||||
$from(bytes)
|
$from(bytes)
|
||||||
|
@ -210,6 +210,8 @@ macro_rules! impl_hash {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Eq for $from {}
|
||||||
|
|
||||||
impl PartialEq for $from {
|
impl PartialEq for $from {
|
||||||
fn eq(&self, other: &Self) -> bool {
|
fn eq(&self, other: &Self) -> bool {
|
||||||
for i in 0..$size {
|
for i in 0..$size {
|
||||||
|
|
Loading…
Reference in New Issue