Skip to content

Commit

Permalink
Merge pull request #1516 from 0chain/fix/txn-processing
Browse files Browse the repository at this point in the history
Fix/txn processing
  • Loading branch information
dabasov authored Dec 19, 2024
2 parents cdcf01d + 75a57a6 commit 262e296
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 10 additions & 4 deletions code/go/0chain.net/blobber/zcn.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ func setupServerChain() error {
serverChain := chain.NewChainFromConfig()
chain.SetServerChain(serverChain)

//options := []int{
// 0,
// 10, // MinConfirmation
// 20, // MinSubmit
// 3, // ConfirmationChainLength
// 3, // SharderConsensous
// 1, // QuerySleepTime
// 0, // VerifyOptimistic
//}

err := client.InitSDK("{}", serverChain.BlockWorker, config.Configuration.ChainID, config.Configuration.SignatureScheme, 0, false)
if err != nil {
return err
Expand All @@ -93,10 +103,6 @@ func setupServerChain() error {
return err
}

if client.GetClient().IsSplit {
zcncore.RegisterZauthServer(serverChain.ZauthServer)
}

fmt.Print(" [OK]\n")
return nil
}
1 change: 0 additions & 1 deletion code/go/0chain.net/core/chain/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func NewChainFromConfig() *Chain {
chain.ID = common.ToKey(config.Configuration.ChainID)
chain.OwnerID = viper.GetString("server_chain.owner")
chain.BlockWorker = viper.GetString("block_worker")
chain.ZauthServer = viper.GetString("zauth_server")
return chain
}

Expand Down
4 changes: 0 additions & 4 deletions code/go/0chain.net/validator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,6 @@ func SetupValidatorOnBC(logDir string) error {
return err
}

if client.GetClient().IsSplit {
zcncore.RegisterZauthServer(serverChain.ZauthServer)
}

go RegisterValidator()

return nil
Expand Down

0 comments on commit 262e296

Please sign in to comment.