@@ -48,7 +48,8 @@ def __init__(self,
4848 preindexed : Optional [Dict [str , Any ]] = None ,
4949 emulator_path : Optional [str ] = None ,
5050 emulator_unchanged_path : Optional [str ] = None ,
51- toncenter_trace : "TonTrace" = None ):
51+ toncenter_trace : "TonTrace" = None ,
52+ use_boc_for_diff : bool = False ):
5253 # Indices and caches
5354 self .tx_index : Dict [TxHashHex , Tuple [BlockKey , Dict [str , Any ]]] = OrderedDict ()
5455 self .blocks : Dict [BlockKey , Dict [str , Any ]] = OrderedDict ()
@@ -68,6 +69,9 @@ def __init__(self,
6869 self .emulator_path = emulator_path
6970 self .emulator_unchanged_path = emulator_unchanged_path
7071
72+ # Diff behavior flag for transaction comparison
73+ self .use_boc_for_diff : bool = bool (use_boc_for_diff )
74+
7175 # Results and global state overrides
7276 self .failed_traces : List [Dict [str , Any ]] = []
7377 self .global_overrides : Dict [Address , Cell ] = OrderedDict ()
@@ -325,7 +329,8 @@ def _process_tx(self, transaction_hash: TxHashHex,
325329
326330 # Emulate root tx via unified stepper
327331 step = TxStepEmulator (block = self .blocks [block_key ], loglevel = self .loglevel , color_schema = self .color_schema ,
328- em = em , account_state_em1 = state1 , em2 = em2 , account_state_em2 = state1 )
332+ em = em , account_state_em1 = state1 , em2 = em2 , account_state_em2 = state1 ,
333+ use_boc_for_diff = self .use_boc_for_diff )
329334 tmp_out , new_state1 , _new_state2 , out_msgs = step .emulate (
330335 tx ,
331336 extract_out_msgs = True
0 commit comments