Skip to content

Commit

Permalink
No default urls, and typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daria305 committed Apr 6, 2023
1 parent 1eb80d3 commit 6f8eb4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/evilspammer/commitmentmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (c *CommitmentManager) GenerateCommitment(clt evilwallet.Client) (*commitme
return comm, index, err
case "random":
slotIndex := c.clockSync.LatestCommittedSlotClock.Get()
newCommitment := randomCommittmentChain(slotIndex)
newCommitment := randomCommitmentChain(slotIndex)

return newCommitment, slotIndex - 10, nil

Expand Down Expand Up @@ -220,7 +220,7 @@ func (c *CommitmentManager) getForkedCommitment(slot slot.Index) (*commitment.Co
return forkedComm, nil
}

func randomCommittmentChain(currSlot slot.Index) *commitment.Commitment {
func randomCommitmentChain(currSlot slot.Index) *commitment.Commitment {
chain := make([]*commitment.Commitment, currSlot+1)
chain[0] = commitment.NewEmptyCommitment()
for i := slot.Index(0); i < currSlot-1; i++ {
Expand Down
4 changes: 2 additions & 2 deletions tools/evil-spammer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
// Nodes used during the test, use at least two nodes to be able to doublespend.
var (
// urls = []string{"http://bootstrap-01.feature.shimmer.iota.cafe:8080", "http://vanilla-01.feature.shimmer.iota.cafe:8080", "http://drng-01.feature.shimmer.iota.cafe:8080"}
urls = []string{"http://localhost:8080", "http://localhost:8090", "http://localhost:8070", "http://localhost:8040"}
//urls = []string{}
// urls = []string{"http://localhost:8080", "http://localhost:8090", "http://localhost:8070", "http://localhost:8040"}
urls = []string{}
)

var (
Expand Down

0 comments on commit 6f8eb4c

Please sign in to comment.