Skip to content

Commit

Permalink
Update FederationTestUtils to create an ERP federation similar to the…
Browse files Browse the repository at this point in the history
… one in mainnet
  • Loading branch information
marcos-iov committed Aug 28, 2024
1 parent 62961df commit 378c3b3
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ public static ErpFederation getErpFederation(NetworkParameters networkParameters
new String[]{"fa01", "fa02", "fa03", "fa04", "fa05", "fa06", "fa07", "fa08", "fa09"}, true
);
final List<BtcECKey> erpSigners = BitcoinTestUtils.getBtcEcKeysFromSeeds(
new String[]{"fb01", "fb02", "fb03"}, true
new String[]{"fb01", "fb02", "fb03", "fb04"}, true
);

List<FederationMember> fedMember = FederationTestUtils.getFederationMembersWithBtcKeys(
fedSigners);
fedSigners
);

FederationArgs federationArgs = new FederationArgs(
fedMember,
Expand All @@ -59,7 +60,7 @@ public static ErpFederation getErpFederation(NetworkParameters networkParameters
networkParameters
);

long erpFedActivationDelay = 100L;
long erpFedActivationDelay = 52_560; // Mainnet value

return FederationFactory.buildP2shErpFederation(
federationArgs,
Expand Down

0 comments on commit 378c3b3

Please sign in to comment.