From f4a03994a03b596f4e3169c651132883eb997ce7 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Thu, 30 Nov 2017 03:40:17 +0300 Subject: random code options example --- src/randomCodeOptions.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/randomCodeOptions.json (limited to 'src') diff --git a/src/randomCodeOptions.json b/src/randomCodeOptions.json new file mode 100644 index 000000000..afe0e6248 --- /dev/null +++ b/src/randomCodeOptions.json @@ -0,0 +1,31 @@ +{ + "probabilities" : + { + "//comment" : "spawn undefined bytecodes in code", + "useUndefinedOpCodes" : false, + + "//comment" : "spawn correct opcodes (with correct argument stack and reasonable arguments)", + "smartCodeProbability" : 99, + + "//comment" : "probability of generating a random address instead of defined from list", + "randomAddressProbability" : 3, + + "//comment" : "probability of code being empty (empty code mean empty account)", + "emptyCodeProbability" : 2, + + "//comment" : "probability of generating an empty address for transaction creation", + "emptyAddressProbability" : 15, + + "//comment" : "probability of generating a precompiled address for calls", + "precompiledAddressProbability" : 5, + + "//comment" : "probability of generating a precompiled address for calls", + "byzPrecompiledAddressProbability" : 10, + + "//comment" : "probability of generating a precompiled address as tx destination", + "precompiledDestProbability" : 2, + + "//comment" : "probability of calling to the tx sending account", + "sendingAddressProbability" : 3 + } +} -- cgit v1.2.3