Skip to content

Commit

Permalink
update config for agoric
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed May 28, 2024
1 parent 928daf4 commit 21e2693
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func BroadcastTransaction(txBytes []byte, rpcEndpoint string) (*coretypes.Result
return nil, err
}

fmt.Println("Node: ", rpcEndpoint)
fmt.Println("other: ", res.Data)
fmt.Println("log: ", res.Log)
fmt.Println("code: ", res.Code)
Expand Down
13 changes: 6 additions & 7 deletions configurations/agoric/nodes.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
chain = "stride"
channel = "channel-0"
denom = "ustrd"
prefix = "stride"
gas_per_byte = 20
chain = "agoric"
channel = "channel-62"
denom = "ubld"
prefix = "agoric"
gas_per_byte = 10
base_gas = 110000
ibc_memo = "This should not cause any problems"
memo = "Just checking on this"
Expand All @@ -25,11 +25,10 @@ rpc = [
"http://46.166.143.91:26657",
"http://85.10.197.17:27657",
"http://65.109.35.50:20657",
"http://95.216.5.101:26657",
"http://125.143.190.196:26657",
]

api = "https://stride-api.polkachu.com:443"
api = "https://agoric-api.polkachu.com:443"



8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func main() {
mu.Lock()
failedTxns++
mu.Unlock()
fmt.Printf("%s Node: %s, Error: %v\n", time.Now().Format("15:04:05"), nodeURL, err)

} else {
mu.Lock()
successfulTxns++
Expand Down Expand Up @@ -122,8 +122,10 @@ func main() {
}

// Send transactions to the worker goroutines
for i := 0; i < len(successfulNodes)*BatchSize; i++ {
transactionCh <- fmt.Sprintf("Transaction %d", i)
for i := 0; i < BatchSize; i++ {
for j := 0; j < len(successfulNodes); j++ {
transactionCh <- fmt.Sprintf("Transaction %d", i)
}
}

close(transactionCh) // Close the transaction channel when all transactions are sent
Expand Down

0 comments on commit 21e2693

Please sign in to comment.