File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -600,8 +600,8 @@ public void updateDynamicProperties(BlockCapsule block) {
600600 slot = getSlotAtTime (block .getTimeStamp ());
601601 }
602602 for (int i = 1 ; i < slot ; ++i ){
603- if (getScheduledWitness (i ) != block .getWitnessAddress ()){
604- WitnessCapsule w = this .witnessStore .get (getScheduledWitness (i ). toByteArray ( ));
603+ if (! getScheduledWitness (i ). equals ( block .getWitnessAddress () )){
604+ WitnessCapsule w = this .witnessStore .get (createDbKey ( getScheduledWitness (i )));
605605 w .setTotalMissed (w .getTotalMissed ()+1 );
606606 this .witnessStore .put (w .createDbKey (), w );
607607 logger .info ("{} miss a block. totalMissed = {}" ,
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ message BlockHeader {
118118 //bytes nonce = 5;
119119 //bytes difficulty = 6;
120120 int64 number = 7 ;
121- // int64 witness_id = 8;
121+ int64 witness_id = 8 ;
122122 bytes witness_address = 9 ;
123123 }
124124 raw raw_data = 1 ;
You can’t perform that action at this time.
0 commit comments