mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
* log_report.py is a script to generate debugging reports and combine the logs of the locally run mainchain and sidechain servers. * Log address book before pytest start * Cleanup test utils * Modify log_analyzer so joins all logs into a single file * Organize "all" log as a dictionary * Allow ConfigFile and Section classes to be pickled: This caused a bug on mac platforms. Linux did not appear to use pickle. * Add account history command to py scripts * Add additional logging * Add support to run sidechains under rr: This is an undocumented feature to help debugging. If the environment variable `RIPPLED_SIDECHAIN_RR` is set, it is assumed to point to the rr executable. Sidechain 0 will then be run under rr.
36 lines
662 B
Python
Executable File
36 lines
662 B
Python
Executable File
#!/usr/bin/env python3
|
|
'''
|
|
Script to run an interactive shell to test sidechains.
|
|
'''
|
|
|
|
import sys
|
|
|
|
from common import disable_eprint, eprint
|
|
import interactive
|
|
import sidechain
|
|
|
|
|
|
def main():
|
|
params = sidechain.Params()
|
|
params.interactive = True
|
|
|
|
interactive.set_hooks_dir(params.hooks_dir)
|
|
|
|
if err_str := params.check_error():
|
|
eprint(err_str)
|
|
sys.exit(1)
|
|
|
|
if params.verbose:
|
|
print("eprint enabled")
|
|
else:
|
|
disable_eprint()
|
|
|
|
if params.standalone:
|
|
sidechain.standalone_interactive_repl(params)
|
|
else:
|
|
sidechain.multinode_interactive_repl(params)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|