Browse Source

p2p: renames for reactors and routing layer internal moves (#6547)

pull/6554/head
Sam Kleinman 4 years ago
committed by GitHub
parent
commit
a855f96946
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
207 changed files with 204 additions and 204 deletions
  1. +1
    -1
      cmd/tendermint/commands/gen_node_key.go
  2. +1
    -1
      cmd/tendermint/commands/init.go
  3. +1
    -1
      cmd/tendermint/commands/probe_upnp.go
  4. +1
    -2
      cmd/tendermint/commands/replay.go
  5. +1
    -1
      cmd/tendermint/commands/show_node_id.go
  6. +1
    -1
      cmd/tendermint/commands/testnet.go
  7. +3
    -2
      crypto/secp256k1/secp256k1.go
  8. +3
    -3
      docs/architecture/adr-060-go-api-stability.md
  9. +1
    -1
      docs/tutorials/go-built-in.md
  10. +0
    -0
      internal/blockchain/doc.go
  11. +0
    -0
      internal/blockchain/msgs.go
  12. +1
    -1
      internal/blockchain/v0/pool.go
  13. +1
    -1
      internal/blockchain/v0/pool_test.go
  14. +2
    -2
      internal/blockchain/v0/reactor.go
  15. +3
    -3
      internal/blockchain/v0/reactor_test.go
  16. +0
    -0
      internal/blockchain/v0/test_util.go
  17. +0
    -0
      internal/blockchain/v2/internal/behavior/doc.go
  18. +1
    -1
      internal/blockchain/v2/internal/behavior/peer_behaviour.go
  19. +1
    -1
      internal/blockchain/v2/internal/behavior/reporter.go
  20. +2
    -2
      internal/blockchain/v2/internal/behavior/reporter_test.go
  21. +1
    -1
      internal/blockchain/v2/io.go
  22. +0
    -0
      internal/blockchain/v2/metrics.go
  23. +1
    -1
      internal/blockchain/v2/processor.go
  24. +0
    -0
      internal/blockchain/v2/processor_context.go
  25. +1
    -1
      internal/blockchain/v2/processor_test.go
  26. +3
    -3
      internal/blockchain/v2/reactor.go
  27. +4
    -4
      internal/blockchain/v2/reactor_test.go
  28. +0
    -0
      internal/blockchain/v2/routine.go
  29. +0
    -0
      internal/blockchain/v2/routine_test.go
  30. +1
    -1
      internal/blockchain/v2/scheduler.go
  31. +1
    -1
      internal/blockchain/v2/scheduler_test.go
  32. +0
    -0
      internal/blockchain/v2/types.go
  33. +0
    -0
      internal/consensus/README.md
  34. +3
    -3
      internal/consensus/byzantine_test.go
  35. +2
    -2
      internal/consensus/common_test.go
  36. +1
    -1
      internal/consensus/invalid_test.go
  37. +1
    -1
      internal/consensus/mempool_test.go
  38. +0
    -0
      internal/consensus/metrics.go
  39. +2
    -2
      internal/consensus/msgs.go
  40. +2
    -2
      internal/consensus/msgs_test.go
  41. +2
    -2
      internal/consensus/peer_state.go
  42. +2
    -2
      internal/consensus/reactor.go
  43. +4
    -4
      internal/consensus/reactor_test.go
  44. +0
    -0
      internal/consensus/replay.go
  45. +0
    -0
      internal/consensus/replay_file.go
  46. +1
    -1
      internal/consensus/replay_stubs.go
  47. +1
    -1
      internal/consensus/replay_test.go
  48. +2
    -2
      internal/consensus/state.go
  49. +2
    -2
      internal/consensus/state_test.go
  50. +0
    -0
      internal/consensus/ticker.go
  51. +1
    -1
      internal/consensus/types/height_vote_set.go
  52. +0
    -0
      internal/consensus/types/height_vote_set_test.go
  53. +0
    -0
      internal/consensus/types/peer_round_state.go
  54. +0
    -0
      internal/consensus/types/peer_round_state_test.go
  55. +0
    -0
      internal/consensus/types/round_state.go
  56. +0
    -0
      internal/consensus/wal.go
  57. +0
    -0
      internal/consensus/wal_fuzz.go
  58. +0
    -0
      internal/consensus/wal_generator.go
  59. +1
    -1
      internal/consensus/wal_test.go
  60. +0
    -0
      internal/evidence/doc.go
  61. +0
    -0
      internal/evidence/mocks/block_store.go
  62. +0
    -0
      internal/evidence/pool.go
  63. +2
    -2
      internal/evidence/pool_test.go
  64. +1
    -1
      internal/evidence/reactor.go
  65. +4
    -4
      internal/evidence/reactor_test.go
  66. +0
    -0
      internal/evidence/services.go
  67. +0
    -0
      internal/evidence/verify.go
  68. +2
    -2
      internal/evidence/verify_test.go
  69. +0
    -0
      internal/mempool/cache.go
  70. +0
    -0
      internal/mempool/cache_bench_test.go
  71. +0
    -0
      internal/mempool/cache_test.go
  72. +0
    -0
      internal/mempool/errors.go
  73. +1
    -1
      internal/mempool/ids.go
  74. +1
    -1
      internal/mempool/ids_test.go
  75. +1
    -1
      internal/mempool/mempool.go
  76. +0
    -0
      internal/mempool/metrics.go
  77. +1
    -1
      internal/mempool/mock/mempool.go
  78. +1
    -1
      internal/mempool/tx.go
  79. +1
    -1
      internal/mempool/v0/bench_test.go
  80. +1
    -1
      internal/mempool/v0/cache_test.go
  81. +2
    -2
      internal/mempool/v0/clist_mempool.go
  82. +1
    -1
      internal/mempool/v0/clist_mempool_test.go
  83. +0
    -0
      internal/mempool/v0/doc.go
  84. +2
    -2
      internal/mempool/v0/reactor.go
  85. +3
    -3
      internal/mempool/v0/reactor_test.go
  86. +1
    -1
      internal/mempool/v1/mempool.go
  87. +1
    -1
      internal/mempool/v1/mempool_bench_test.go
  88. +1
    -1
      internal/mempool/v1/mempool_test.go
  89. +0
    -0
      internal/mempool/v1/priority_queue.go
  90. +0
    -0
      internal/mempool/v1/priority_queue_test.go
  91. +2
    -2
      internal/mempool/v1/reactor.go
  92. +1
    -1
      internal/mempool/v1/tx.go
  93. +1
    -1
      internal/mempool/v1/tx_test.go
  94. +0
    -0
      internal/p2p/README.md
  95. +0
    -0
      internal/p2p/address.go
  96. +1
    -1
      internal/p2p/address_test.go
  97. +1
    -1
      internal/p2p/base_reactor.go
  98. +0
    -0
      internal/p2p/conn/conn_go110.go
  99. +0
    -0
      internal/p2p/conn/conn_notgo110.go
  100. +0
    -0
      internal/p2p/conn/connection.go

+ 1
- 1
cmd/tendermint/commands/gen_node_key.go View File

@ -5,8 +5,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tendermint/tendermint/internal/p2p"
tmjson "github.com/tendermint/tendermint/libs/json" tmjson "github.com/tendermint/tendermint/libs/json"
"github.com/tendermint/tendermint/p2p"
) )
// GenNodeKeyCmd allows the generation of a node key. It prints JSON-encoded // GenNodeKeyCmd allows the generation of a node key. It prints JSON-encoded


+ 1
- 1
cmd/tendermint/commands/init.go View File

@ -8,9 +8,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/internal/p2p"
tmos "github.com/tendermint/tendermint/libs/os" tmos "github.com/tendermint/tendermint/libs/os"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"


+ 1
- 1
cmd/tendermint/commands/probe_upnp.go View File

@ -5,8 +5,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tendermint/tendermint/internal/p2p/upnp"
tmjson "github.com/tendermint/tendermint/libs/json" tmjson "github.com/tendermint/tendermint/libs/json"
"github.com/tendermint/tendermint/p2p/upnp"
) )
// ProbeUpnpCmd adds capabilities to test the UPnP functionality. // ProbeUpnpCmd adds capabilities to test the UPnP functionality.


+ 1
- 2
cmd/tendermint/commands/replay.go View File

@ -2,8 +2,7 @@ package commands
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tendermint/tendermint/consensus"
"github.com/tendermint/tendermint/internal/consensus"
) )
// ReplayCmd allows replaying of messages from the WAL. // ReplayCmd allows replaying of messages from the WAL.


+ 1
- 1
cmd/tendermint/commands/show_node_id.go View File

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/internal/p2p"
) )
// ShowNodeIDCmd dumps node's ID to the standard output. // ShowNodeIDCmd dumps node's ID to the standard output.


+ 1
- 1
cmd/tendermint/commands/testnet.go View File

@ -12,9 +12,9 @@ import (
"github.com/spf13/viper" "github.com/spf13/viper"
cfg "github.com/tendermint/tendermint/config" cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/internal/p2p"
"github.com/tendermint/tendermint/libs/bytes" "github.com/tendermint/tendermint/libs/bytes"
tmrand "github.com/tendermint/tendermint/libs/rand" tmrand "github.com/tendermint/tendermint/libs/rand"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
"github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/types"
tmtime "github.com/tendermint/tendermint/types/time" tmtime "github.com/tendermint/tendermint/types/time"


+ 3
- 2
crypto/secp256k1/secp256k1.go View File

@ -9,10 +9,11 @@ import (
"math/big" "math/big"
secp256k1 "github.com/btcsuite/btcd/btcec" secp256k1 "github.com/btcsuite/btcd/btcec"
"golang.org/x/crypto/ripemd160" // nolint: staticcheck // necessary for Bitcoin address format
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
tmjson "github.com/tendermint/tendermint/libs/json" tmjson "github.com/tendermint/tendermint/libs/json"
// necessary for Bitcoin address format
"golang.org/x/crypto/ripemd160" // nolint: staticcheck
) )
//------------------------------------- //-------------------------------------


+ 3
- 3
docs/architecture/adr-060-go-api-stability.md View File

@ -59,7 +59,7 @@ When preparing our public API for 1.0, we should keep these principles in mind:
The following is the minimum set of public APIs that will be included in 1.0, in some form: The following is the minimum set of public APIs that will be included in 1.0, in some form:
- `abci` - `abci`
- `node` and related packages (e.g. possibly `config`, `libs/log`, and `version`)
- packages used for constructing nodes `config`, `libs/log`, and `version`
- Client APIs, i.e. `rpc/client`, `light`, and `privval`. - Client APIs, i.e. `rpc/client`, `light`, and `privval`.
- `crypto` (possibly as a separate repo) - `crypto` (possibly as a separate repo)
@ -91,9 +91,9 @@ For comparison, the following are the number of Tendermint imports in the Cosmos
4 github.com/tendermint/tendermint/libs/rand 4 github.com/tendermint/tendermint/libs/rand
1 github.com/tendermint/tendermint/libs/strings 1 github.com/tendermint/tendermint/libs/strings
5 github.com/tendermint/tendermint/light 5 github.com/tendermint/tendermint/light
1 github.com/tendermint/tendermint/mempool
1 github.com/tendermint/tendermint/internal/mempool
3 github.com/tendermint/tendermint/node 3 github.com/tendermint/tendermint/node
5 github.com/tendermint/tendermint/p2p
5 github.com/tendermint/tendermint/internal/p2p
4 github.com/tendermint/tendermint/privval 4 github.com/tendermint/tendermint/privval
10 github.com/tendermint/tendermint/proto/tendermint/crypto 10 github.com/tendermint/tendermint/proto/tendermint/crypto
1 github.com/tendermint/tendermint/proto/tendermint/libs/bits 1 github.com/tendermint/tendermint/proto/tendermint/libs/bits


+ 1
- 1
docs/tutorials/go-built-in.md View File

@ -351,7 +351,7 @@ import (
tmflags "github.com/tendermint/tendermint/libs/cli/flags" tmflags "github.com/tendermint/tendermint/libs/cli/flags"
"github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/libs/log"
nm "github.com/tendermint/tendermint/node" nm "github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/internal/p2p"
"github.com/tendermint/tendermint/privval" "github.com/tendermint/tendermint/privval"
"github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/proxy"
) )


blockchain/doc.go → internal/blockchain/doc.go View File


blockchain/msgs.go → internal/blockchain/msgs.go View File


blockchain/v0/pool.go → internal/blockchain/v0/pool.go View File


blockchain/v0/pool_test.go → internal/blockchain/v0/pool_test.go View File


blockchain/v0/reactor.go → internal/blockchain/v0/reactor.go View File


blockchain/v0/reactor_test.go → internal/blockchain/v0/reactor_test.go View File


blockchain/v0/test_util.go → internal/blockchain/v0/test_util.go View File


blockchain/v2/internal/behavior/doc.go → internal/blockchain/v2/internal/behavior/doc.go View File


blockchain/v2/internal/behavior/peer_behaviour.go → internal/blockchain/v2/internal/behavior/peer_behaviour.go View File


blockchain/v2/internal/behavior/reporter.go → internal/blockchain/v2/internal/behavior/reporter.go View File


blockchain/v2/internal/behavior/reporter_test.go → internal/blockchain/v2/internal/behavior/reporter_test.go View File


blockchain/v2/io.go → internal/blockchain/v2/io.go View File


blockchain/v2/metrics.go → internal/blockchain/v2/metrics.go View File


blockchain/v2/processor.go → internal/blockchain/v2/processor.go View File


blockchain/v2/processor_context.go → internal/blockchain/v2/processor_context.go View File


blockchain/v2/processor_test.go → internal/blockchain/v2/processor_test.go View File


blockchain/v2/reactor.go → internal/blockchain/v2/reactor.go View File


blockchain/v2/reactor_test.go → internal/blockchain/v2/reactor_test.go View File


blockchain/v2/routine.go → internal/blockchain/v2/routine.go View File


blockchain/v2/routine_test.go → internal/blockchain/v2/routine_test.go View File


blockchain/v2/scheduler.go → internal/blockchain/v2/scheduler.go View File


blockchain/v2/scheduler_test.go → internal/blockchain/v2/scheduler_test.go View File


blockchain/v2/types.go → internal/blockchain/v2/types.go View File


consensus/README.md → internal/consensus/README.md View File


consensus/byzantine_test.go → internal/consensus/byzantine_test.go View File


consensus/common_test.go → internal/consensus/common_test.go View File


consensus/invalid_test.go → internal/consensus/invalid_test.go View File


consensus/mempool_test.go → internal/consensus/mempool_test.go View File


consensus/metrics.go → internal/consensus/metrics.go View File


consensus/msgs.go → internal/consensus/msgs.go View File


consensus/msgs_test.go → internal/consensus/msgs_test.go View File


consensus/peer_state.go → internal/consensus/peer_state.go View File


consensus/reactor.go → internal/consensus/reactor.go View File


consensus/reactor_test.go → internal/consensus/reactor_test.go View File


consensus/replay.go → internal/consensus/replay.go View File


consensus/replay_file.go → internal/consensus/replay_file.go View File


consensus/replay_stubs.go → internal/consensus/replay_stubs.go View File


consensus/replay_test.go → internal/consensus/replay_test.go View File


consensus/state.go → internal/consensus/state.go View File


consensus/state_test.go → internal/consensus/state_test.go View File


consensus/ticker.go → internal/consensus/ticker.go View File


consensus/types/height_vote_set.go → internal/consensus/types/height_vote_set.go View File


consensus/types/height_vote_set_test.go → internal/consensus/types/height_vote_set_test.go View File


consensus/types/peer_round_state.go → internal/consensus/types/peer_round_state.go View File


consensus/types/peer_round_state_test.go → internal/consensus/types/peer_round_state_test.go View File


consensus/types/round_state.go → internal/consensus/types/round_state.go View File


consensus/wal.go → internal/consensus/wal.go View File


consensus/wal_fuzz.go → internal/consensus/wal_fuzz.go View File


consensus/wal_generator.go → internal/consensus/wal_generator.go View File


consensus/wal_test.go → internal/consensus/wal_test.go View File


evidence/doc.go → internal/evidence/doc.go View File


evidence/mocks/block_store.go → internal/evidence/mocks/block_store.go View File


evidence/pool.go → internal/evidence/pool.go View File


evidence/pool_test.go → internal/evidence/pool_test.go View File


evidence/reactor.go → internal/evidence/reactor.go View File


evidence/reactor_test.go → internal/evidence/reactor_test.go View File


evidence/services.go → internal/evidence/services.go View File


evidence/verify.go → internal/evidence/verify.go View File


evidence/verify_test.go → internal/evidence/verify_test.go View File


mempool/cache.go → internal/mempool/cache.go View File


mempool/cache_bench_test.go → internal/mempool/cache_bench_test.go View File


mempool/cache_test.go → internal/mempool/cache_test.go View File


mempool/errors.go → internal/mempool/errors.go View File


mempool/ids.go → internal/mempool/ids.go View File


mempool/ids_test.go → internal/mempool/ids_test.go View File


mempool/mempool.go → internal/mempool/mempool.go View File


mempool/metrics.go → internal/mempool/metrics.go View File


mempool/mock/mempool.go → internal/mempool/mock/mempool.go View File


mempool/tx.go → internal/mempool/tx.go View File


mempool/v0/bench_test.go → internal/mempool/v0/bench_test.go View File


mempool/v0/cache_test.go → internal/mempool/v0/cache_test.go View File


mempool/v0/clist_mempool.go → internal/mempool/v0/clist_mempool.go View File


mempool/v0/clist_mempool_test.go → internal/mempool/v0/clist_mempool_test.go View File


mempool/v0/doc.go → internal/mempool/v0/doc.go View File


mempool/v0/reactor.go → internal/mempool/v0/reactor.go View File


mempool/v0/reactor_test.go → internal/mempool/v0/reactor_test.go View File


mempool/v1/mempool.go → internal/mempool/v1/mempool.go View File


mempool/v1/mempool_bench_test.go → internal/mempool/v1/mempool_bench_test.go View File


mempool/v1/mempool_test.go → internal/mempool/v1/mempool_test.go View File


mempool/v1/priority_queue.go → internal/mempool/v1/priority_queue.go View File


mempool/v1/priority_queue_test.go → internal/mempool/v1/priority_queue_test.go View File


mempool/v1/reactor.go → internal/mempool/v1/reactor.go View File


mempool/v1/tx.go → internal/mempool/v1/tx.go View File


mempool/v1/tx_test.go → internal/mempool/v1/tx_test.go View File


p2p/README.md → internal/p2p/README.md View File


p2p/address.go → internal/p2p/address.go View File


p2p/address_test.go → internal/p2p/address_test.go View File


p2p/base_reactor.go → internal/p2p/base_reactor.go View File


p2p/conn/conn_go110.go → internal/p2p/conn/conn_go110.go View File


p2p/conn/conn_notgo110.go → internal/p2p/conn/conn_notgo110.go View File


p2p/conn/connection.go → internal/p2p/conn/connection.go View File


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

Loading…
Cancel
Save