File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ def execute_command(input_line: str):
118
118
return
119
119
elif action == "list" :
120
120
for i , instance in enumerate (manager .instances ):
121
- print (i , instance .status , instance )
121
+ print (i , instance .status .name ,
122
+ f"{ instance .contract } data={ None if instance .data is None else instance .data .hex ()} value={ instance .get_value ()} outpoint={ (instance .outpoint .hash ).to_bytes (32 , byteorder = 'big' ).hex ()} :{ instance .outpoint .n } " )
122
123
elif action == "mine" :
123
124
if '@0' in args_dict :
124
125
n_blocks = int (args_dict ['@0' ])
Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ def execute_command(input_line: str):
136
136
return
137
137
elif action == "list" :
138
138
for i , instance in enumerate (manager .instances ):
139
- print (i , instance .status , instance )
139
+ print (i , instance .status .name ,
140
+ f"{ instance .contract } data={ None if instance .data is None else instance .data .hex ()} value={ instance .get_value ()} outpoint={ (instance .outpoint .hash ).to_bytes (32 , byteorder = 'big' ).hex ()} :{ instance .outpoint .n } " )
140
141
elif action == "mine" :
141
142
if '@0' in args_dict :
142
143
n_blocks = int (args_dict ['@0' ])
@@ -298,7 +299,7 @@ def cli_main():
298
299
raise # exit
299
300
except Exception as err :
300
301
print (f"Error: { err } " )
301
- print (traceback .format_exc ())
302
+ # print(traceback.format_exc())
302
303
303
304
304
305
def script_main (script_filename : str ):
You can’t perform that action at this time.
0 commit comments