fix styling format for client code

pull/69/head
Minh Doan 6 years ago
parent c1368df687
commit c8b4d7bbab
  1. 2
      client/txgen/main.go
  2. 2
      client/utils.go

@ -95,7 +95,7 @@ func generateSimulatedTransactions(subsetId, numSubset int, shardId int, dataNod
txInfo.txCount = 0 txInfo.txCount = 0
UTXOLOOP: UTXOLOOP:
// Loop over all addresses // Loop over all addresses
for address, txMap := range dataNodes[shardId].UtxoPool.UtxoMap { for address, txMap := range dataNodes[shardId].UtxoPool.UtxoMap {
if int(binary.BigEndian.Uint32(address[:]))%numSubset == subsetId%numSubset { // Work on one subset of utxo at a time if int(binary.BigEndian.Uint32(address[:]))%numSubset == subsetId%numSubset { // Work on one subset of utxo at a time
txInfo.address = address txInfo.address = address

@ -2,12 +2,12 @@ package client
import ( import (
"bytes" "bytes"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"io" "io"
"log" "log"
"net/http" "net/http"
"sync" "sync"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
) )
var AddressToIntPriKeyMap map[[20]byte]int // For convenience, we use int as the secret seed for generating private key var AddressToIntPriKeyMap map[[20]byte]int // For convenience, we use int as the secret seed for generating private key

Loading…
Cancel
Save