Browse Source

libs: internalize some packages (#6366)

## Description

Internalize some libs. This reduces the amount ot public API tendermint is supporting. The moved libraries are mainly ones that are used within Tendermint-core.
pull/6487/head
Marko 3 years ago
committed by GitHub
parent
commit
719e028e00
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
109 changed files with 108 additions and 108 deletions
  1. +5
    -4
      CHANGELOG_PENDING.md
  2. +1
    -1
      abci/client/client.go
  3. +1
    -1
      abci/client/grpc_client.go
  4. +1
    -1
      abci/client/local_client.go
  5. +2
    -2
      abci/client/socket_client.go
  6. +1
    -1
      abci/server/socket_server.go
  7. +1
    -1
      abci/types/messages.go
  8. +2
    -2
      blockchain/v0/pool.go
  9. +1
    -1
      blockchain/v2/internal/behavior/reporter.go
  10. +1
    -1
      blockchain/v2/reactor.go
  11. +1
    -1
      consensus/byzantine_test.go
  12. +1
    -1
      consensus/common_test.go
  13. +1
    -1
      consensus/peer_state.go
  14. +1
    -1
      consensus/reactor.go
  15. +1
    -1
      consensus/reactor_test.go
  16. +1
    -1
      consensus/replay_stubs.go
  17. +2
    -2
      consensus/state.go
  18. +1
    -1
      consensus/wal.go
  19. +1
    -1
      consensus/wal_test.go
  20. +4
    -5
      crypto/merkle/tree_test.go
  21. +1
    -1
      evidence/pool.go
  22. +2
    -2
      evidence/reactor.go
  23. +0
    -0
      internal/libs/autofile/README.md
  24. +0
    -0
      internal/libs/autofile/autofile.go
  25. +0
    -0
      internal/libs/autofile/autofile_test.go
  26. +1
    -1
      internal/libs/autofile/cmd/logjack.go
  27. +0
    -0
      internal/libs/autofile/group.go
  28. +0
    -0
      internal/libs/autofile/group_test.go
  29. +0
    -0
      internal/libs/clist/bench_test.go
  30. +1
    -1
      internal/libs/clist/clist.go
  31. +0
    -0
      internal/libs/clist/clist_test.go
  32. +0
    -0
      internal/libs/fail/fail.go
  33. +0
    -0
      internal/libs/flowrate/README.md
  34. +1
    -1
      internal/libs/flowrate/flowrate.go
  35. +0
    -0
      internal/libs/flowrate/io.go
  36. +0
    -0
      internal/libs/flowrate/io_test.go
  37. +0
    -0
      internal/libs/flowrate/util.go
  38. +0
    -0
      internal/libs/protoio/io.go
  39. +1
    -1
      internal/libs/protoio/io_test.go
  40. +0
    -0
      internal/libs/protoio/reader.go
  41. +0
    -0
      internal/libs/protoio/writer.go
  42. +0
    -0
      internal/libs/sync/closer.go
  43. +1
    -1
      internal/libs/sync/closer_test.go
  44. +0
    -0
      internal/libs/sync/deadlock.go
  45. +0
    -0
      internal/libs/sync/sync.go
  46. +0
    -0
      internal/libs/sync/waker.go
  47. +1
    -1
      internal/libs/sync/waker_test.go
  48. +1
    -1
      internal/libs/tempfile/tempfile.go
  49. +0
    -0
      internal/libs/tempfile/tempfile_test.go
  50. +0
    -0
      internal/libs/test/mutate.go
  51. +1
    -1
      internal/libs/timer/throttle_timer.go
  52. +1
    -1
      internal/libs/timer/throttle_timer_test.go
  53. +1
    -1
      libs/cmap/cmap.go
  54. +1
    -1
      libs/events/events.go
  55. +1
    -1
      libs/json/structs.go
  56. +1
    -1
      libs/json/types.go
  57. +1
    -1
      libs/pubsub/pubsub.go
  58. +1
    -1
      libs/pubsub/subscription.go
  59. +1
    -1
      light/client.go
  60. +1
    -1
      light/store/db/db.go
  61. +2
    -2
      mempool/clist_mempool.go
  62. +1
    -1
      mempool/ids.go
  63. +1
    -1
      mempool/mock/mempool.go
  64. +2
    -2
      mempool/reactor.go
  65. +4
    -4
      p2p/conn/connection.go
  66. +1
    -1
      p2p/conn/connection_test.go
  67. +1
    -1
      p2p/conn/evil_secret_connection_test.go
  68. +2
    -2
      p2p/conn/secret_connection.go
  69. +1
    -1
      p2p/conn_set.go
  70. +1
    -1
      p2p/peer_set.go
  71. +1
    -1
      p2p/peermanager.go
  72. +1
    -1
      p2p/pex/addrbook.go
  73. +1
    -1
      p2p/pex/file.go
  74. +1
    -1
      p2p/pqueue.go
  75. +1
    -1
      p2p/queue.go
  76. +1
    -1
      p2p/router_filter_test.go
  77. +1
    -1
      p2p/router_test.go
  78. +1
    -1
      p2p/switch_test.go
  79. +1
    -1
      p2p/transport_mconn.go
  80. +1
    -1
      p2p/transport_memory.go
  81. +1
    -1
      p2p/trust/metric.go
  82. +1
    -1
      p2p/trust/store.go
  83. +1
    -1
      p2p/wdrr_queue.go
  84. +1
    -1
      p2p/wdrr_queue_test.go
  85. +2
    -2
      privval/file.go
  86. +2
    -2
      privval/secret_connection.go
  87. +2
    -2
      privval/signer_endpoint.go
  88. +1
    -1
      privval/signer_listener_endpoint.go
  89. +1
    -1
      privval/signer_server.go
  90. +1
    -1
      proxy/client.go
  91. +1
    -1
      rpc/client/http/ws.go
  92. +1
    -1
      rpc/jsonrpc/client/http_json_client.go
  93. +1
    -1
      rpc/jsonrpc/client/ws_client.go
  94. +1
    -1
      rpc/jsonrpc/client/ws_client_test.go
  95. +1
    -1
      state/execution.go
  96. +1
    -1
      statesync/chunks.go
  97. +1
    -1
      statesync/reactor.go
  98. +1
    -1
      statesync/snapshots.go
  99. +1
    -1
      statesync/stateprovider.go
  100. +1
    -1
      statesync/syncer.go

+ 5
- 4
CHANGELOG_PENDING.md View File

@ -38,15 +38,16 @@ Friendly reminder: We have a [bug bounty program](https://hackerone.com/tendermi
- [store] \#5848 Remove block store state in favor of using the db iterators directly (@cmwaters)
- [state] \#5864 Use an iterator when pruning state (@cmwaters)
- [types] \#6023 Remove `tm2pb.Header`, `tm2pb.BlockID`, `tm2pb.PartSetHeader` and `tm2pb.NewValidatorUpdate`.
- Each of the above types has a `ToProto` and `FromProto` method or function which replaced this logic.
- Each of the above types has a `ToProto` and `FromProto` method or function which replaced this logic.
- [light] \#6054 Move `MaxRetryAttempt` option from client to provider.
- `NewWithOptions` now sets the max retry attempts and timeouts (@cmwaters)
- `NewWithOptions` now sets the max retry attempts and timeouts (@cmwaters)
- [all] \#6077 Change spelling from British English to American (@cmwaters)
- Rename "Subscription.Cancelled()" to "Subscription.Canceled()" in libs/pubsub
- Rename "behaviour" pkg to "behavior" and internalized it in blockchain v2
- Rename "Subscription.Cancelled()" to "Subscription.Canceled()" in libs/pubsub
- Rename "behaviour" pkg to "behavior" and internalized it in blockchain v2
- [rpc/client/http] \#6176 Remove `endpoint` arg from `New`, `NewWithTimeout` and `NewWithClient` (@melekes)
- [rpc/client/http] \#6176 Unexpose `WSEvents` (@melekes)
- [rpc/jsonrpc/client/ws_client] \#6176 `NewWS` no longer accepts options (use `NewWSWithOptions` and `OnReconnect` funcs to configure the client) (@melekes)
- [internal/libs] \#6366 Move `autofile`, `clist`,`fail`,`flowrate`, `protoio`, `sync`, `tempfile`, `test` and `timer` lib packages to an internal folder
- [libs/rand] \#6364 Removed most of libs/rand in favour of standard lib's `math/rand` (@liamsi)
- Blockchain Protocol


+ 1
- 1
abci/client/client.go View File

@ -6,8 +6,8 @@ import (
"sync"
"github.com/tendermint/tendermint/abci/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
const (


+ 1
- 1
abci/client/grpc_client.go View File

@ -10,9 +10,9 @@ import (
"google.golang.org/grpc"
"github.com/tendermint/tendermint/abci/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
tmnet "github.com/tendermint/tendermint/libs/net"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
// A gRPC client.


+ 1
- 1
abci/client/local_client.go View File

@ -4,8 +4,8 @@ import (
"context"
types "github.com/tendermint/tendermint/abci/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
// NOTE: use defer to unlock mutex because Application might panic (e.g., in


+ 2
- 2
abci/client/socket_client.go View File

@ -12,10 +12,10 @@ import (
"time"
"github.com/tendermint/tendermint/abci/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/internal/libs/timer"
tmnet "github.com/tendermint/tendermint/libs/net"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/libs/timer"
)
const (


+ 1
- 1
abci/server/socket_server.go View File

@ -9,10 +9,10 @@ import (
"runtime"
"github.com/tendermint/tendermint/abci/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
tmlog "github.com/tendermint/tendermint/libs/log"
tmnet "github.com/tendermint/tendermint/libs/net"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
// var maxNumberConnections = 2


+ 1
- 1
abci/types/messages.go View File

@ -4,7 +4,7 @@ import (
"io"
"github.com/gogo/protobuf/proto"
"github.com/tendermint/tendermint/libs/protoio"
"github.com/tendermint/tendermint/internal/libs/protoio"
)
const (


+ 2
- 2
blockchain/v0/pool.go View File

@ -7,10 +7,10 @@ import (
"sync/atomic"
"time"
flow "github.com/tendermint/tendermint/libs/flowrate"
flow "github.com/tendermint/tendermint/internal/libs/flowrate"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/types"
)


+ 1
- 1
blockchain/v2/internal/behavior/reporter.go View File

@ -3,7 +3,7 @@ package behavior
import (
"errors"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/p2p"
)


+ 1
- 1
blockchain/v2/reactor.go View File

@ -9,8 +9,8 @@ import (
bc "github.com/tendermint/tendermint/blockchain"
"github.com/tendermint/tendermint/blockchain/v2/internal/behavior"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
bcproto "github.com/tendermint/tendermint/proto/tendermint/blockchain"
"github.com/tendermint/tendermint/state"


+ 1
- 1
consensus/byzantine_test.go View File

@ -13,9 +13,9 @@ import (
abcicli "github.com/tendermint/tendermint/abci/client"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/evidence"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/internal/test/factory"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
mempl "github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/p2p"
tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"


+ 1
- 1
consensus/common_test.go View File

@ -25,12 +25,12 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
cfg "github.com/tendermint/tendermint/config"
cstypes "github.com/tendermint/tendermint/consensus/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/internal/test/factory"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"github.com/tendermint/tendermint/libs/log"
tmos "github.com/tendermint/tendermint/libs/os"
tmpubsub "github.com/tendermint/tendermint/libs/pubsub"
tmsync "github.com/tendermint/tendermint/libs/sync"
mempl "github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/privval"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"


+ 1
- 1
consensus/peer_state.go View File

@ -7,10 +7,10 @@ import (
"time"
cstypes "github.com/tendermint/tendermint/consensus/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/bits"
tmjson "github.com/tendermint/tendermint/libs/json"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types"


+ 1
- 1
consensus/reactor.go View File

@ -5,11 +5,11 @@ import (
"time"
cstypes "github.com/tendermint/tendermint/consensus/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/bits"
tmevents "github.com/tendermint/tendermint/libs/events"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"


+ 1
- 1
consensus/reactor_test.go View File

@ -18,9 +18,9 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
cfg "github.com/tendermint/tendermint/config"
cryptoenc "github.com/tendermint/tendermint/crypto/encoding"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/internal/test/factory"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
mempl "github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/p2p/p2ptest"


+ 1
- 1
consensus/replay_stubs.go View File

@ -2,7 +2,7 @@ package consensus
import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/clist"
"github.com/tendermint/tendermint/internal/libs/clist"
mempl "github.com/tendermint/tendermint/mempool"
tmstate "github.com/tendermint/tendermint/proto/tendermint/state"
"github.com/tendermint/tendermint/proxy"


+ 2
- 2
consensus/state.go View File

@ -15,14 +15,14 @@ import (
cfg "github.com/tendermint/tendermint/config"
cstypes "github.com/tendermint/tendermint/consensus/types"
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/internal/libs/fail"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
tmevents "github.com/tendermint/tendermint/libs/events"
"github.com/tendermint/tendermint/libs/fail"
tmjson "github.com/tendermint/tendermint/libs/json"
"github.com/tendermint/tendermint/libs/log"
tmmath "github.com/tendermint/tendermint/libs/math"
tmos "github.com/tendermint/tendermint/libs/os"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
sm "github.com/tendermint/tendermint/state"


+ 1
- 1
consensus/wal.go View File

@ -11,7 +11,7 @@ import (
"github.com/gogo/protobuf/proto"
auto "github.com/tendermint/tendermint/libs/autofile"
auto "github.com/tendermint/tendermint/internal/libs/autofile"
tmjson "github.com/tendermint/tendermint/libs/json"
"github.com/tendermint/tendermint/libs/log"
tmos "github.com/tendermint/tendermint/libs/os"


+ 1
- 1
consensus/wal_test.go View File

@ -14,7 +14,7 @@ import (
"github.com/tendermint/tendermint/consensus/types"
"github.com/tendermint/tendermint/crypto/merkle"
"github.com/tendermint/tendermint/libs/autofile"
"github.com/tendermint/tendermint/internal/libs/autofile"
"github.com/tendermint/tendermint/libs/log"
tmtypes "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time"


+ 4
- 5
crypto/merkle/tree_test.go View File

@ -7,10 +7,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
tmrand "github.com/tendermint/tendermint/libs/rand"
. "github.com/tendermint/tendermint/libs/test"
"github.com/tendermint/tendermint/crypto/tmhash"
ctest "github.com/tendermint/tendermint/internal/libs/test"
tmrand "github.com/tendermint/tendermint/libs/rand"
)
type testItem []byte
@ -92,11 +91,11 @@ func TestProof(t *testing.T) {
proof.Aunts = origAunts
// Mutating the itemHash should make it fail.
err = proof.Verify(rootHash, MutateByteSlice(item))
err = proof.Verify(rootHash, ctest.MutateByteSlice(item))
require.Error(t, err, "Expected verification to fail for mutated leaf hash")
// Mutating the rootHash should make it fail.
err = proof.Verify(MutateByteSlice(rootHash), item)
err = proof.Verify(ctest.MutateByteSlice(rootHash), item)
require.Error(t, err, "Expected verification to fail for mutated root hash")
}
}


+ 1
- 1
evidence/pool.go View File

@ -13,7 +13,7 @@ import (
"github.com/google/orderedcode"
dbm "github.com/tendermint/tm-db"
clist "github.com/tendermint/tendermint/libs/clist"
clist "github.com/tendermint/tendermint/internal/libs/clist"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
sm "github.com/tendermint/tendermint/state"


+ 2
- 2
evidence/reactor.go View File

@ -5,10 +5,10 @@ import (
"sync"
"time"
clist "github.com/tendermint/tendermint/libs/clist"
clist "github.com/tendermint/tendermint/internal/libs/clist"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types"


libs/autofile/README.md → internal/libs/autofile/README.md View File


libs/autofile/autofile.go → internal/libs/autofile/autofile.go View File


libs/autofile/autofile_test.go → internal/libs/autofile/autofile_test.go View File


libs/autofile/cmd/logjack.go → internal/libs/autofile/cmd/logjack.go View File


libs/autofile/group.go → internal/libs/autofile/group.go View File


libs/autofile/group_test.go → internal/libs/autofile/group_test.go View File


libs/clist/bench_test.go → internal/libs/clist/bench_test.go View File


libs/clist/clist.go → internal/libs/clist/clist.go View File


libs/clist/clist_test.go → internal/libs/clist/clist_test.go View File


libs/fail/fail.go → internal/libs/fail/fail.go View File


libs/flowrate/README.md → internal/libs/flowrate/README.md View File


libs/flowrate/flowrate.go → internal/libs/flowrate/flowrate.go View File


libs/flowrate/io.go → internal/libs/flowrate/io.go View File


libs/flowrate/io_test.go → internal/libs/flowrate/io_test.go View File


libs/flowrate/util.go → internal/libs/flowrate/util.go View File


libs/protoio/io.go → internal/libs/protoio/io.go View File


libs/protoio/io_test.go → internal/libs/protoio/io_test.go View File


libs/protoio/reader.go → internal/libs/protoio/reader.go View File


libs/protoio/writer.go → internal/libs/protoio/writer.go View File


libs/sync/closer.go → internal/libs/sync/closer.go View File


libs/sync/closer_test.go → internal/libs/sync/closer_test.go View File


libs/sync/deadlock.go → internal/libs/sync/deadlock.go View File


libs/sync/sync.go → internal/libs/sync/sync.go View File


libs/sync/waker.go → internal/libs/sync/waker.go View File


libs/sync/waker_test.go → internal/libs/sync/waker_test.go View File


libs/tempfile/tempfile.go → internal/libs/tempfile/tempfile.go View File


libs/tempfile/tempfile_test.go → internal/libs/tempfile/tempfile_test.go View File


libs/test/mutate.go → internal/libs/test/mutate.go View File


libs/timer/throttle_timer.go → internal/libs/timer/throttle_timer.go View File


libs/timer/throttle_timer_test.go → internal/libs/timer/throttle_timer_test.go View File


+ 1
- 1
libs/cmap/cmap.go View File

@ -1,7 +1,7 @@
package cmap
import (
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
)
// CMap is a goroutine-safe map


+ 1
- 1
libs/events/events.go View File

@ -4,8 +4,8 @@ package events
import (
"fmt"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
// ErrListenerWasRemoved is returned by AddEvent if the listener was removed.


+ 1
- 1
libs/json/structs.go View File

@ -6,7 +6,7 @@ import (
"strings"
"unicode"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
)
var (


+ 1
- 1
libs/json/types.go View File

@ -5,7 +5,7 @@ import (
"fmt"
"reflect"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
)
var (


+ 1
- 1
libs/pubsub/pubsub.go View File

@ -39,8 +39,8 @@ import (
"errors"
"fmt"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
type operation int


+ 1
- 1
libs/pubsub/subscription.go View File

@ -3,7 +3,7 @@ package pubsub
import (
"errors"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
)
var (


+ 1
- 1
light/client.go View File

@ -9,9 +9,9 @@ import (
"sync"
"time"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmmath "github.com/tendermint/tendermint/libs/math"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/light/provider"
"github.com/tendermint/tendermint/light/store"
"github.com/tendermint/tendermint/types"


+ 1
- 1
light/store/db/db.go View File

@ -7,7 +7,7 @@ import (
"github.com/google/orderedcode"
dbm "github.com/tendermint/tm-db"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/light/store"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types"


+ 2
- 2
mempool/clist_mempool.go View File

@ -11,10 +11,10 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/libs/clist"
"github.com/tendermint/tendermint/internal/libs/clist"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmmath "github.com/tendermint/tendermint/libs/math"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/proxy"
"github.com/tendermint/tendermint/types"


+ 1
- 1
mempool/ids.go View File

@ -3,7 +3,7 @@ package mempool
import (
"fmt"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/p2p"
)


+ 1
- 1
mempool/mock/mempool.go View File

@ -2,7 +2,7 @@ package mock
import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/clist"
"github.com/tendermint/tendermint/internal/libs/clist"
mempl "github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/types"
)


+ 2
- 2
mempool/reactor.go View File

@ -8,10 +8,10 @@ import (
"time"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/libs/clist"
"github.com/tendermint/tendermint/internal/libs/clist"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
protomem "github.com/tendermint/tendermint/proto/tendermint/mempool"
"github.com/tendermint/tendermint/types"


+ 4
- 4
p2p/conn/connection.go View File

@ -14,13 +14,13 @@ import (
"github.com/gogo/protobuf/proto"
flow "github.com/tendermint/tendermint/libs/flowrate"
flow "github.com/tendermint/tendermint/internal/libs/flowrate"
"github.com/tendermint/tendermint/internal/libs/protoio"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/internal/libs/timer"
"github.com/tendermint/tendermint/libs/log"
tmmath "github.com/tendermint/tendermint/libs/math"
"github.com/tendermint/tendermint/libs/protoio"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/libs/timer"
tmp2p "github.com/tendermint/tendermint/proto/tendermint/p2p"
)


+ 1
- 1
p2p/conn/connection_test.go View File

@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/internal/libs/protoio"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/protoio"
tmp2p "github.com/tendermint/tendermint/proto/tendermint/p2p"
"github.com/tendermint/tendermint/proto/tendermint/types"
)


+ 1
- 1
p2p/conn/evil_secret_connection_test.go View File

@ -14,7 +14,7 @@ import (
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519"
cryptoenc "github.com/tendermint/tendermint/crypto/encoding"
"github.com/tendermint/tendermint/libs/protoio"
"github.com/tendermint/tendermint/internal/libs/protoio"
tmp2p "github.com/tendermint/tendermint/proto/tendermint/p2p"
)


+ 2
- 2
p2p/conn/secret_connection.go View File

@ -24,9 +24,9 @@ import (
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519"
cryptoenc "github.com/tendermint/tendermint/crypto/encoding"
"github.com/tendermint/tendermint/internal/libs/protoio"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/async"
"github.com/tendermint/tendermint/libs/protoio"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmp2p "github.com/tendermint/tendermint/proto/tendermint/p2p"
)


+ 1
- 1
p2p/conn_set.go View File

@ -3,7 +3,7 @@ package p2p
import (
"net"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
)
// ConnSet is a lookup table for connections and all their ips.


+ 1
- 1
p2p/peer_set.go View File

@ -3,7 +3,7 @@ package p2p
import (
"net"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
)
// IPeerSet has a (immutable) subset of the methods of PeerSet.


+ 1
- 1
p2p/peermanager.go View File

@ -14,7 +14,7 @@ import (
"github.com/google/orderedcode"
dbm "github.com/tendermint/tm-db"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
p2pproto "github.com/tendermint/tendermint/proto/tendermint/p2p"
)


+ 1
- 1
p2p/pex/addrbook.go View File

@ -16,10 +16,10 @@ import (
"github.com/minio/highwayhash"
"github.com/tendermint/tendermint/crypto"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
tmmath "github.com/tendermint/tendermint/libs/math"
tmrand "github.com/tendermint/tendermint/libs/rand"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
)


+ 1
- 1
p2p/pex/file.go View File

@ -5,7 +5,7 @@ import (
"fmt"
"os"
"github.com/tendermint/tendermint/libs/tempfile"
"github.com/tendermint/tendermint/internal/libs/tempfile"
)
/* Loading & Saving */


+ 1
- 1
p2p/pqueue.go View File

@ -7,8 +7,8 @@ import (
"time"
"github.com/gogo/protobuf/proto"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
// pqEnvelope defines a wrapper around an Envelope with priority to be inserted


+ 1
- 1
p2p/queue.go View File

@ -1,7 +1,7 @@
package p2p
import (
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
)
// queue does QoS scheduling for Envelopes, enqueueing and dequeueing according


+ 1
- 1
p2p/router_filter_test.go View File

@ -8,8 +8,8 @@ import (
"time"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/sync"
)
func TestConnectionFiltering(t *testing.T) {


+ 1
- 1
p2p/router_test.go View File

@ -17,8 +17,8 @@ import (
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/crypto"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/p2p/mocks"
"github.com/tendermint/tendermint/p2p/p2ptest"


+ 1
- 1
p2p/switch_test.go View File

@ -21,8 +21,8 @@ import (
"github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/crypto/ed25519"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p/conn"
)


+ 1
- 1
p2p/transport_mconn.go View File

@ -13,8 +13,8 @@ import (
"golang.org/x/net/netutil"
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/internal/libs/protoio"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/protoio"
"github.com/tendermint/tendermint/p2p/conn"
p2pproto "github.com/tendermint/tendermint/proto/tendermint/p2p"
)


+ 1
- 1
p2p/transport_memory.go View File

@ -9,8 +9,8 @@ import (
"sync"
"github.com/tendermint/tendermint/crypto"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p/conn"
)


+ 1
- 1
p2p/trust/metric.go View File

@ -7,8 +7,8 @@ import (
"math"
"time"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
//---------------------------------------------------------------------------------------


+ 1
- 1
p2p/trust/store.go View File

@ -10,8 +10,8 @@ import (
dbm "github.com/tendermint/tm-db"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
const defaultStorePeriodicSaveInterval = 1 * time.Minute


+ 1
- 1
p2p/wdrr_queue.go View File

@ -6,8 +6,8 @@ import (
"strconv"
"github.com/gogo/protobuf/proto"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
const defaultCapacity uint = 1048576 // 1MB


+ 1
- 1
p2p/wdrr_queue_test.go View File

@ -8,8 +8,8 @@ import (
gogotypes "github.com/gogo/protobuf/types"
"github.com/stretchr/testify/require"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
)
type testMessage = gogotypes.StringValue


+ 2
- 2
privval/file.go View File

@ -13,11 +13,11 @@ import (
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519"
"github.com/tendermint/tendermint/crypto/secp256k1"
"github.com/tendermint/tendermint/internal/libs/protoio"
"github.com/tendermint/tendermint/internal/libs/tempfile"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
tmjson "github.com/tendermint/tendermint/libs/json"
tmos "github.com/tendermint/tendermint/libs/os"
"github.com/tendermint/tendermint/libs/protoio"
"github.com/tendermint/tendermint/libs/tempfile"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time"


+ 2
- 2
privval/secret_connection.go View File

@ -24,9 +24,9 @@ import (
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/ed25519"
cryptoenc "github.com/tendermint/tendermint/crypto/encoding"
"github.com/tendermint/tendermint/internal/libs/protoio"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/async"
"github.com/tendermint/tendermint/libs/protoio"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmprivval "github.com/tendermint/tendermint/proto/tendermint/privval"
)


+ 2
- 2
privval/signer_endpoint.go View File

@ -5,9 +5,9 @@ import (
"net"
"time"
"github.com/tendermint/tendermint/libs/protoio"
"github.com/tendermint/tendermint/internal/libs/protoio"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
privvalproto "github.com/tendermint/tendermint/proto/tendermint/privval"
)


+ 1
- 1
privval/signer_listener_endpoint.go View File

@ -5,9 +5,9 @@ import (
"net"
"time"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
privvalproto "github.com/tendermint/tendermint/proto/tendermint/privval"
)


+ 1
- 1
privval/signer_server.go View File

@ -4,8 +4,8 @@ import (
"context"
"io"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
privvalproto "github.com/tendermint/tendermint/proto/tendermint/privval"
"github.com/tendermint/tendermint/types"
)


+ 1
- 1
proxy/client.go View File

@ -8,7 +8,7 @@ import (
"github.com/tendermint/tendermint/abci/example/counter"
"github.com/tendermint/tendermint/abci/example/kvstore"
"github.com/tendermint/tendermint/abci/types"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
)
// ClientCreator creates new ABCI clients.


+ 1
- 1
rpc/client/http/ws.go View File

@ -7,10 +7,10 @@ import (
"strings"
"time"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
tmjson "github.com/tendermint/tendermint/libs/json"
tmpubsub "github.com/tendermint/tendermint/libs/pubsub"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
rpcclient "github.com/tendermint/tendermint/rpc/client"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
jsonrpcclient "github.com/tendermint/tendermint/rpc/jsonrpc/client"


+ 1
- 1
rpc/jsonrpc/client/http_json_client.go View File

@ -11,7 +11,7 @@ import (
"net/url"
"strings"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
types "github.com/tendermint/tendermint/rpc/jsonrpc/types"
)


+ 1
- 1
rpc/jsonrpc/client/ws_client.go View File

@ -13,8 +13,8 @@ import (
"github.com/gorilla/websocket"
metrics "github.com/rcrowley/go-metrics"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
types "github.com/tendermint/tendermint/rpc/jsonrpc/types"
)


+ 1
- 1
rpc/jsonrpc/client/ws_client_test.go View File

@ -12,8 +12,8 @@ import (
"github.com/gorilla/websocket"
"github.com/stretchr/testify/require"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
types "github.com/tendermint/tendermint/rpc/jsonrpc/types"
)


+ 1
- 1
state/execution.go View File

@ -8,7 +8,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
cryptoenc "github.com/tendermint/tendermint/crypto/encoding"
"github.com/tendermint/tendermint/libs/fail"
"github.com/tendermint/tendermint/internal/libs/fail"
"github.com/tendermint/tendermint/libs/log"
mempl "github.com/tendermint/tendermint/mempool"
tmstate "github.com/tendermint/tendermint/proto/tendermint/state"


+ 1
- 1
statesync/chunks.go View File

@ -9,7 +9,7 @@ import (
"strconv"
"time"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/p2p"
)


+ 1
- 1
statesync/reactor.go View File

@ -8,9 +8,9 @@ import (
"time"
abci "github.com/tendermint/tendermint/abci/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/libs/service"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
ssproto "github.com/tendermint/tendermint/proto/tendermint/statesync"
"github.com/tendermint/tendermint/proxy"


+ 1
- 1
statesync/snapshots.go View File

@ -9,7 +9,7 @@ import (
"strings"
"time"
tmsync "github.com/tendermint/tendermint/libs/sync"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/p2p"
)


+ 1
- 1
statesync/stateprovider.go View File

@ -8,8 +8,8 @@ import (
dbm "github.com/tendermint/tm-db"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/light"
lightprovider "github.com/tendermint/tendermint/light/provider"
lighthttp "github.com/tendermint/tendermint/light/provider/http"


+ 1
- 1
statesync/syncer.go View File

@ -8,8 +8,8 @@ import (
"time"
abci "github.com/tendermint/tendermint/abci/types"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
tmsync "github.com/tendermint/tendermint/libs/sync"
"github.com/tendermint/tendermint/p2p"
ssproto "github.com/tendermint/tendermint/proto/tendermint/statesync"
"github.com/tendermint/tendermint/proxy"


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save