Skip to content

proxy: remove Handshaker from proxy pkg#2437

Merged
xla merged 2 commits intodevelopfrom
bucky/handshake
Sep 19, 2018
Merged

proxy: remove Handshaker from proxy pkg#2437
xla merged 2 commits intodevelopfrom
bucky/handshake

Conversation

@ebuchman
Copy link
Contributor

Handshaker was removed from proxy package so it can be called
independently of starting the abci app connections and can return a
result to the caller.

Ref #2436

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

Handshaker was removed from proxy package so it can be called
independently of starting the abci app connections and can return a
result to the caller.
@codecov-io
Copy link

Codecov Report

Merging #2437 into develop will decrease coverage by 0.01%.
The diff coverage is 35.71%.

@@             Coverage Diff             @@
##           develop    #2437      +/-   ##
===========================================
- Coverage    61.28%   61.26%   -0.02%     
===========================================
  Files          198      198              
  Lines        16383    16390       +7     
===========================================
+ Hits         10040    10042       +2     
- Misses        5508     5511       +3     
- Partials       835      837       +2
Impacted Files Coverage Δ
consensus/replay_file.go 0% <0%> (ø) ⬆️
consensus/wal_generator.go 79.04% <33.33%> (-1.54%) ⬇️
node/node.go 64.31% <66.66%> (-0.31%) ⬇️
blockchain/pool.go 65.73% <0%> (-0.7%) ⬇️
consensus/state.go 77.03% <0%> (+0.47%) ⬆️

@codecov-io
Copy link

Codecov Report

Merging #2437 into develop will increase coverage by 0.14%.
The diff coverage is 41.66%.

@@             Coverage Diff             @@
##           develop    #2437      +/-   ##
===========================================
+ Coverage    61.28%   61.43%   +0.14%     
===========================================
  Files          198      198              
  Lines        16383    16387       +4     
===========================================
+ Hits         10040    10067      +27     
+ Misses        5508     5492      -16     
+ Partials       835      828       -7
Impacted Files Coverage Δ
consensus/replay_file.go 0% <0%> (ø) ⬆️
consensus/wal_generator.go 80.39% <100%> (-0.2%) ⬇️
node/node.go 64.31% <66.66%> (-0.31%) ⬇️
p2p/conn/connection.go 79.71% <0%> (+0.28%) ⬆️
consensus/reactor.go 74.09% <0%> (+1.07%) ⬆️
consensus/state.go 78.58% <0%> (+2.03%) ⬆️
libs/autofile/autofile.go 77.46% <0%> (+2.81%) ⬆️

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇 🏎 🍰

// run the whole chain against this client to build up the tendermint state
clientCreator := proxy.NewLocalClientCreator(kvstore.NewPersistentKVStoreApplication(path.Join(config.DBDir(), "1")))
proxyApp := proxy.NewAppConns(clientCreator, nil) // sm.NewHandshaker(config, state, store, ReplayLastBlock))
proxyApp := proxy.NewAppConns(clientCreator) // sm.NewHandshaker(config, state, store, ReplayLastBlock))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment should either be removed OR moved to where handshaker is being created

@xla xla added this to the launch milestone Sep 19, 2018
Copy link
Contributor

@xla xla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 :octocat: :shipit: 🍡

I for one welcome our new liberated handshaking overlords.


handshaker := NewHandshaker(stateDB, state, blockStore, gdoc)
err = handshaker.Handshake(proxyApp)
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be collapsed into: if err := handhsaker.Handshake(proxyApp); err != nil {

@xla xla merged commit 91a8767 into develop Sep 19, 2018
@xla xla deleted the bucky/handshake branch September 19, 2018 13:35
iKapitonau pushed a commit to scrtlabs/tendermint that referenced this pull request Jul 10, 2024
) (tendermint#2437)

This is an automatic backport of pull request tendermint#2414 done by
[Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: DragonKid <idragonkid@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants