@@ -205,7 +205,7 @@ func Test_StakeDelegateAndDelayedClaim(t *testing.T) {
205
205
// CREATE NEW ACCOUNT WITH BLOCK ISSUER AND STAKING FEATURES FROM BASIC UTXO
206
206
newAccountBlockIssuerKey := tpkg .RandBlockIssuerKey ()
207
207
// set the expiry slot of the transitioned genesis account to the latest committed + MaxCommittableAge
208
- newAccountExpirySlot := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Slot () + ts .API .ProtocolParameters ().MaxCommittableAge ()
208
+ newAccountExpirySlot := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Slot () + ts .API .ProtocolParameters ().MaxCommittableAge ()
209
209
210
210
stakedAmount := iotago .BaseToken (10000 )
211
211
@@ -421,7 +421,7 @@ func Test_ImplicitAccounts(t *testing.T) {
421
421
),
422
422
mock .WithAccountAmount (mock .MinIssuerAccountAmount (ts .API .ProtocolParameters ())),
423
423
)
424
- block2Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
424
+ block2Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
425
425
block2 := ts .IssueBasicBlockWithOptions ("block2" , newUserWallet , tx2 , mock .WithStrongParents (latestParents ... ))
426
426
latestParents = ts .CommitUntilSlot (block2Slot , block2 .ID ())
427
427
@@ -543,7 +543,7 @@ func Test_NegativeBIC_BlockIssuerLocked(t *testing.T) {
543
543
// Try to issue more blocks from each of the issuers - one succeeds in issuing a block,
544
544
// the other has the block rejected in the PostSolidFilter as his account has negative BIC value.
545
545
{
546
- block2Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
546
+ block2Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
547
547
548
548
block21 := ts .IssueBasicBlockWithOptions ("block2.1" , wallet1 , & iotago.TaggedData {}, mock .WithSlotCommitment (block2Commitment ))
549
549
@@ -586,7 +586,7 @@ func Test_NegativeBIC_BlockIssuerLocked(t *testing.T) {
586
586
Mana : iotago .Mana (allottedBIC ),
587
587
}}, "Genesis:0" )
588
588
589
- block3Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
589
+ block3Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
590
590
// Wallet 1 whose account is not locked is issuing the block to unlock the account of wallet 2.
591
591
block31 := ts .IssueBasicBlockWithOptions ("block3.1" , wallet1 , tx1 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block3Commitment ))
592
592
@@ -618,7 +618,7 @@ func Test_NegativeBIC_BlockIssuerLocked(t *testing.T) {
618
618
619
619
// Issue block from the unlocked account of wallet 2 to make sure that it's actually unlocked.
620
620
{
621
- block4Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
621
+ block4Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
622
622
623
623
block4 := ts .IssueBasicBlockWithOptions ("block4" , wallet2 , & iotago.TaggedData {}, mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block4Commitment ))
624
624
@@ -768,7 +768,7 @@ func Test_NegativeBIC_AccountOutput(t *testing.T) {
768
768
Mana : iotago .Mana (allottedBIC ),
769
769
}}, "Genesis:0" )
770
770
771
- block2Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
771
+ block2Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
772
772
// Wallet 2 whose account is not locked is issuing the block to unlock the account of wallet 1.
773
773
block2 := ts .IssueBasicBlockWithOptions ("block2" , wallet2 , tx2 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block2Commitment ))
774
774
@@ -805,7 +805,7 @@ func Test_NegativeBIC_AccountOutput(t *testing.T) {
805
805
mock .WithBlockIssuerExpirySlot (newExpirySlot ),
806
806
)
807
807
808
- block3Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
808
+ block3Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
809
809
810
810
// Wallet 1, which already has non-negative BIC issues the block.
811
811
block3 := ts .IssueBasicBlockWithOptions ("block3" , wallet1 , tx3 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block3Commitment ))
@@ -843,7 +843,7 @@ func Test_NegativeBIC_AccountOutput(t *testing.T) {
843
843
// create a transaction which destroys the genesis account.
844
844
845
845
tx4 := wallet1 .DestroyAccount ("TX4" , "TX3:0" )
846
- block4Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
846
+ block4Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
847
847
848
848
block4 := ts .IssueBasicBlockWithOptions ("block4" , wallet2 , tx4 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block4Commitment ))
849
849
latestParents = ts .CommitUntilSlot (block4Slot , block4 .ID ())
@@ -979,7 +979,7 @@ func Test_NegativeBIC_AccountOwnedBasicOutputLocked(t *testing.T) {
979
979
980
980
// TRY TO SPEND THE BASIC OUTPUT FROM AN ACCOUNT ADDRESS
981
981
{
982
- block2Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
982
+ block2Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
983
983
984
984
tx2 := wallet1 .SendFundsFromAccount (
985
985
"TX2" ,
@@ -1026,7 +1026,7 @@ func Test_NegativeBIC_AccountOwnedBasicOutputLocked(t *testing.T) {
1026
1026
Mana : iotago .Mana (allottedBIC ),
1027
1027
}}, "TX0:1" )
1028
1028
1029
- block3Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
1029
+ block3Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
1030
1030
1031
1031
// Wallet 2 whose account is not locked is issuing the block to unlock the account of wallet 1.
1032
1032
block3 := ts .IssueBasicBlockWithOptions ("block3" , wallet2 , tx3 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block3Commitment ))
@@ -1060,7 +1060,7 @@ func Test_NegativeBIC_AccountOwnedBasicOutputLocked(t *testing.T) {
1060
1060
block4Slot := ts .CurrentSlot ()
1061
1061
// SPEND THE BASIC OUTPUT FROM AN ACCOUNT ADDRESS
1062
1062
{
1063
- block4Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
1063
+ block4Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
1064
1064
1065
1065
tx4 := wallet1 .SendFundsFromAccount (
1066
1066
"TX4" ,
0 commit comments