aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2017-11-30 08:40:17 +0800
committerDimitry <dimitry@ethereum.org>2017-11-30 08:40:17 +0800
commitf4a03994a03b596f4e3169c651132883eb997ce7 (patch)
tree3299837d8bfda04dc114e6cd09505d6d28a09a40
parent6df9b4ad039ff0043ca75579979f945598898eb3 (diff)
downloadtangerine-tests-f4a03994a03b596f4e3169c651132883eb997ce7.tar.gz
tangerine-tests-f4a03994a03b596f4e3169c651132883eb997ce7.tar.zst
tangerine-tests-f4a03994a03b596f4e3169c651132883eb997ce7.zip
random code options example
-rw-r--r--src/randomCodeOptions.json31
1 files changed, 31 insertions, 0 deletions
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
+ }
+}