Fixes in consensus and syles.

This commit is contained in:
Revertron
2021-04-29 19:53:30 +02:00
parent 6d4dfb282f
commit eb6d6d3690
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -9,6 +9,7 @@ use log::{debug, error, info, trace, warn};
use sqlite::{Connection, State, Statement};
use crate::{Block, Bytes, Keystore, Transaction, check_domain, get_domain_zone, is_yggdrasil_record};
use crate::blockchain::transaction::TransactionType;
use crate::commons::constants::*;
use crate::blockchain::types::{BlockQuality, MineResult, Options};
use crate::blockchain::types::BlockQuality::*;
@@ -760,6 +761,12 @@ impl Chain {
return Rewind;
}
}
if matches!(Transaction::get_type(&block.transaction), TransactionType::Zone) {
if self.get_zones().len() >= 10 {
warn!("Ignoring excess zone block");
return Bad;
}
}
if let Some(transaction) = &block.transaction {
let current_height = match last_block {
+1 -1
View File
@@ -55,7 +55,7 @@ body {
}
#new_domain_dialog_box {
min-height: 380px;
min-height: 480px;
}
.delete {