tonkeeper / tongo

Go primitives to work with TON
MIT License
215 stars 45 forks source link

public access to connection pool #321

Open max107 opened 4 days ago

max107 commented 4 days ago

Sometime methods inside client (client.LookupBlock as example) select not the best connection and we don't have possibility to override method without public access to connection pool. That MR maybe not the best solution, but it help do something like:

    client, _, err := c.Pool().BestMasterchainClient(ctx)
    if err != nil {
        return ton.BlockIDExt{}, tlb.BlockInfo{}, err
    }