Added mining threads count option.
This commit is contained in:
@@ -32,7 +32,7 @@ impl DnsFilter for BlockchainFilter {
|
||||
subdomain = String::from(parts[2]);
|
||||
}
|
||||
}
|
||||
debug!("Searching domain {} and record {}", &search, &subdomain);
|
||||
debug!("Searching record type '{:?}', name '{}' for domain '{}'", &qtype, &subdomain, &search);
|
||||
|
||||
let data = self.context.lock().unwrap().chain.get_domain_info(&search);
|
||||
match data {
|
||||
@@ -129,6 +129,7 @@ impl DnsFilter for BlockchainFilter {
|
||||
}
|
||||
}
|
||||
|
||||
//debug!("Answers: {:?}", &answers);
|
||||
return if !answers.is_empty() {
|
||||
// Create DnsPacket
|
||||
let mut packet = DnsPacket::new();
|
||||
|
||||
@@ -69,7 +69,7 @@ impl fmt::Debug for Transaction {
|
||||
|
||||
impl Serialize for Transaction {
|
||||
fn serialize<S>(&self, serializer: S) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where S: Serializer {
|
||||
let mut structure = serializer.serialize_struct("Transaction", 4).unwrap();
|
||||
let mut structure = serializer.serialize_struct("Transaction", 5).unwrap();
|
||||
structure.serialize_field("identity", &self.identity)?;
|
||||
structure.serialize_field("confirmation", &self.confirmation)?;
|
||||
structure.serialize_field("method", &self.method)?;
|
||||
|
||||
Reference in New Issue
Block a user