Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 96b4eaa

Browse files
author
Michael Hueschen
committed
[CBR-503] Document OBFT update testing
1 parent 426573f commit 96b4eaa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

script-runner/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,23 @@ This module contains scripts to perform tests at the cluster level - running clu
55
### Usage
66

77
See the `stack-gui` and `stack-test` scripts which contain usage commands.
8+
9+
### Testing OBFT
10+
11+
`script-runner` launches nodes using the `dev:` key of `lib/configuration.yaml`. We can start in OBFT era by applying a patch such as
12+
```
13+
diff --git a/lib/configuration.yaml b/lib/configuration.yaml
14+
index b55039730b..f67e581929 100644
15+
--- a/lib/configuration.yaml
16+
+++ b/lib/configuration.yaml
17+
@@ -48,7 +48,7 @@ dev: &dev
18+
txSizeLinear:
19+
a: 155381 # absolute minimal fees per transaction
20+
b: 43.946 # additional minimal fees per byte of transaction size
21+
- unlockStakeEpoch: 18446744073709551615 # last epoch (maxBound @Word64)
22+
+ unlockStakeEpoch: 9999999999999999999
23+
protocolConstants: &dev_core_genesis_spec_protocolConstants
24+
k: 2
25+
protocolMagic: 55550001
26+
```
27+
and then running a test e.g. `cd script-runner && ./stack-test test4.1` which ensures that we can issue update proposals and see them adopted in OBFT era.

0 commit comments

Comments
 (0)