Skip to content

Commit 1af828e

Browse files
Revert "Reset network with non-zero initial round (#1658)" (#1680)
[ci] This reverts commit c9e77b9. Signed-off-by: Moritz Kiefer <[email protected]> Co-authored-by: Moritz Kiefer <[email protected]>
1 parent 2ff5738 commit 1af828e

File tree

70 files changed

+350
-977
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+350
-977
lines changed

apps/app/src/test/resources/include/svs/sv1.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
is-dev-net = true
4545
# We assume the foundation is the sv1 and gets a Tier 1 node (weight 10)
4646
first-sv-reward-weight-bps = 10000
47-
initial-round = 0
4847
}
4948

5049
scan {

apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/DecentralizedSynchronizerMigrationIntegrationTest.scala

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ class DecentralizedSynchronizerMigrationIntegrationTest
113113
with StandaloneCanton
114114
with SplitwellTestUtil {
115115

116-
private val initialRound = 481516L
117-
118116
override def dbsSuffix = "domain_migration"
119117

120118
override implicit val patienceConfig: PatienceConfig = PatienceConfig(scaled(Span(1, Minute)))
@@ -412,11 +410,6 @@ class DecentralizedSynchronizerMigrationIntegrationTest
412410
_.withPausedTrigger[ReceiveSvRewardCouponTrigger]
413411
)(conf),
414412
)
415-
.addConfigTransforms((_, config) =>
416-
ConfigTransforms.updateAllSvAppFoundDsoConfigs_(
417-
_.copy(initialRound = initialRound)
418-
)(config)
419-
)
420413
.withManualStart
421414
// TODO (#965) remove and fix test failures
422415
.withAmuletPrice(walletAmuletPrice)
@@ -1049,7 +1042,7 @@ class DecentralizedSynchronizerMigrationIntegrationTest
10491042
"Bob",
10501043
SvUtil.DefaultSV1Weight,
10511044
"bob-participant-id",
1052-
new Round(initialRound + 42),
1045+
new Round(42),
10531046
)
10541047
)
10551048
),
@@ -1176,12 +1169,6 @@ class DecentralizedSynchronizerMigrationIntegrationTest
11761169
sv1LocalBackend.startSync()
11771170
}
11781171

1179-
withClueAndLog(s"SVs have $initialRound as initial round") {
1180-
Seq(sv1LocalBackend, sv2LocalBackend).foreach { sv =>
1181-
sv.getDsoInfo().initialRound shouldBe initialRound.toString
1182-
}
1183-
}
1184-
11851172
withClueAndLog("sv1 restarts without any onboarding type") {
11861173
sv1LocalBackend.stop()
11871174
svb("sv1LocalOnboarded").startSync()

apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/DisasterRecoveryIntegrationTest.scala

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import org.lfdecentralizedtrust.splice.console.{
2222
SvAppBackendReference,
2323
ValidatorAppBackendReference,
2424
}
25-
import org.lfdecentralizedtrust.splice.environment.BaseLedgerConnection.INITIAL_ROUND_USER_METADATA_KEY
2625
import org.lfdecentralizedtrust.splice.http.v0.definitions.TransactionHistoryRequest
2726
import org.lfdecentralizedtrust.splice.integration.EnvironmentDefinition
2827
import org.lfdecentralizedtrust.splice.integration.tests.SpliceTests.{
@@ -243,20 +242,18 @@ class DisasterRecoveryIntegrationTest
243242
runTest(
244243
"lost-all-sequencers-most-participants",
245244
(identities, timestampBeforeDisaster) => {
245+
val dump =
246+
sv2Backend
247+
.getDomainDataSnapshot(
248+
timestampBeforeDisaster,
249+
Some(identities.head.dsoPartyId),
250+
force = true,
251+
)
252+
dump.dataSnapshot.acsTimestamp should be(timestampBeforeDisaster)
253+
dump.createdAt should be(timestampBeforeDisaster)
254+
dump.migrationId shouldBe 1
246255
Seq(sv1Backend, sv2Backend, sv3Backend, sv4Backend).zip(identities).foreach {
247256
case (sv, ids) =>
248-
val dump =
249-
sv
250-
.getDomainDataSnapshot(
251-
timestampBeforeDisaster,
252-
Some(identities.head.dsoPartyId),
253-
force = true,
254-
)
255-
dump.dataSnapshot.acsTimestamp should be(timestampBeforeDisaster)
256-
dump.createdAt should be(timestampBeforeDisaster)
257-
dump.migrationId shouldBe 1
258-
dump.participantUsers.users
259-
.find(_.annotations.contains(INITIAL_ROUND_USER_METADATA_KEY)) should not be empty
260257
writeMigrationDumpFile(sv, ids, dump)
261258
}
262259
},
@@ -610,9 +607,7 @@ class DisasterRecoveryIntegrationTest
610607
clue(s"Waiting for all SVs participants to be caught up to $timestamp") {
611608
Seq(sv1Backend, sv2Backend, sv3Backend, sv4Backend).foreach(svBackend =>
612609
eventuallySucceeds() {
613-
val snapshot = svBackend.getDomainDataSnapshot(timestamp, force = true)
614-
snapshot.participantUsers.users
615-
.find(_.annotations.contains(INITIAL_ROUND_USER_METADATA_KEY)) should not be empty
610+
svBackend.getDomainDataSnapshot(timestamp, force = true)
616611
}
617612
)
618613
}
@@ -649,7 +644,7 @@ class DisasterRecoveryIntegrationTest
649644
migrationId = dump.migrationId,
650645
ids,
651646
dump.dataSnapshot,
652-
dump.participantUsers,
647+
None,
653648
createdAt = dump.createdAt,
654649
)
655650
fullDumpFile.write(fullDump.asJson.spaces2)

apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/ScanHistoryBackfillingIntegrationTest.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ class ScanHistoryBackfillingIntegrationTest
4343
with HasActorSystem
4444
with HasExecutionContext {
4545

46-
val initialRound = 48151623L
47-
4846
override def environmentDefinition: SpliceEnvironmentDefinition =
4947
EnvironmentDefinition
5048
.simpleTopology4Svs(this.getClass.getSimpleName)
@@ -73,11 +71,6 @@ class ScanHistoryBackfillingIntegrationTest
7371
)
7472
)(config)
7573
)
76-
.addConfigTransforms((_, config) =>
77-
ConfigTransforms.updateAllSvAppFoundDsoConfigs_(
78-
_.copy(initialRound = initialRound)
79-
)(config)
80-
)
8174
// The wallet automation periodically merges amulets, which leads to non-deterministic balance changes.
8275
// We disable the automation for this suite.
8376
.withoutAutomaticRewardsCollectionAndAmuletMerging

apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/ScanIntegrationTest.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ class ScanIntegrationTest extends IntegrationTest with WalletTestUtil with TimeT
8484
amuletRules,
8585
dsoRules,
8686
svNodeStates,
87-
_,
8887
) =>
8988
scan.svUser should be(svUser)
9089
scan.svPartyId should be(svParty.toProtoPrimitive)

0 commit comments

Comments
 (0)