@@ -203,11 +203,9 @@ handle_call({new_block, #{hash:=BlockHash,
203203 is_tuple (PID ) -> PID ;
204204 true -> emulator
205205 end ,
206- ? LOG_INFO (" Arrived block from ~p Verify block with ~p " ,
207- [FromNode , maps :keys (Blk )]),
208-
209- ? LOG_INFO (" New block (~p /~p ) hash ~s (~s /~s )" ,
206+ ? LOG_INFO (" New block from ~p (~p /~p ) hash ~s (~s /~s )" ,
210207 [
208+ FromNode ,
211209 Hei ,
212210 maps :get (height , maps :get (header , LastBlock )),
213211 blkid (BlockHash ),
@@ -250,8 +248,8 @@ handle_call({new_block, #{hash:=BlockHash,
250248 Txs = maps :get (txs , Blk , []),
251249 Txsl = length (Txs ),
252250 if LenSucc > 0 ->
253- ? LOG_INFO (" from ~p New block ~w arrived ~s , txs ~b , verify ~w sig (~.3f ms)" ,
254- [FromNode , maps :get (height , maps :get (header , Blk )),
251+ ? LOG_INFO (" Block ~w verified ~s , txs ~b , verify ~w sig (~.3f ms)" ,
252+ [maps :get (height , maps :get (header , Blk )),
255253 blkid (BlockHash ), Txsl , length (Success ), (T1 - T0 )/ 1000000 ]),
256254 ok ;
257255 true ->
@@ -272,7 +270,6 @@ handle_call({new_block, #{hash:=BlockHash,
272270 SigLen = length (maps :get (sign , MBlk )),
273271 ? LOG_DEBUG (" Signs ~p " , [Success ]),
274272 MinSig = getset (minsig ,State ),
275- ? LOG_INFO (" Sig ~p ~p " , [SigLen , MinSig ]),
276273 if SigLen >= MinSig ->
277274 IsTemp = maps :get (temporary ,Blk ,false ) =/= false ,
278275 Header = maps :get (header , Blk ),
@@ -554,6 +551,7 @@ handle_call({new_block, #{hash:=BlockHash,
554551 end ;
555552 true ->
556553 % not enough
554+ ? LOG_NOTICE (" Block arrived to updater, but insufficient signature ~p , required ~p " , [SigLen , MinSig ]),
557555 {reply , {ok , no_enough_sig }, State #{
558556 candidates =>
559557 maps :put (BlockHash ,
0 commit comments