Skip to content

Change ConsensusPayload for compatibility#609

Merged
jsolman merged 3 commits intoconsensus/improved_dbftfrom
consensus/compatibility
Feb 26, 2019
Merged

Change ConsensusPayload for compatibility#609
jsolman merged 3 commits intoconsensus/improved_dbftfrom
consensus/compatibility

Conversation

@erikzhang
Copy link
Copy Markdown
Member

No description provided.

@erikzhang erikzhang requested a review from jsolman February 26, 2019 03:01
@erikzhang erikzhang mentioned this pull request Feb 26, 2019
@jsolman
Copy link
Copy Markdown
Contributor

jsolman commented Feb 26, 2019

I don't think this is sufficient, because it should still be able to properly forward the CN payloads to other nodes. Please review #610

@erikzhang
Copy link
Copy Markdown
Member Author

It can forward the CN payloads to other nodes. Because the non-consensus node does not parse the Data field into a ConsensusMessage after receiving the ConsensusPayload.

@jsolman
Copy link
Copy Markdown
Contributor

jsolman commented Feb 26, 2019

Because the non-consensus node does not parse the Data field into a ConsensusMessage after receiving the ConsensusPayload.

Doesn't this line that I commented on before deserialize the data even on non-consensus nodes.

_deserializedMessage = ConsensusMessage.DeserializeFrom(Data);

@erikzhang
Copy link
Copy Markdown
Member Author

You missed my last commit. 7b30e10

@jsolman
Copy link
Copy Markdown
Contributor

jsolman commented Feb 26, 2019

You missed my last commit. 7b30e10

You are correct. I'm looking again now. Maybe with that it will be fine.

@jsolman jsolman merged commit 91e006c into consensus/improved_dbft Feb 26, 2019
@erikzhang erikzhang deleted the consensus/compatibility branch February 26, 2019 03:46
erikzhang pushed a commit that referenced this pull request Mar 3, 2019
* Add commit phase to consensus algorithm (#534)

* Add commit phase to consensus algorithm

* fix tests

* Prevent repeated sending of `Commit` messages

* RPC call gettransactionheight (#541)

* getrawtransactionheight

Nowadays two calls are need to get a transaction height, `getrawtransaction` with `verbose` and then use the `blockhash`.
Other option is to use `confirmations`, but it can be misleading.

* Minnor fix

* Shargon's tip

* modified

* Allow to use the wallet inside a RPC plugin (#536)

* Clean code

* Clean code

* Minor fix on mempoolVerified

* Add MemoryPool Unit tests. Fix bug on initital start of Persisting the Genesis block.

* Prevent `ConsensusService` from receiving messages before starting (#573)

* Prevent `ConsensusService` from receiving messages before starting

* fixed tests - calling OnStart now

* Consensus recovery log (#572)

* Pass store to `ConsensusService`

* Implement `ISerializable` in `ConsensusContext`

* Start from recovery log

* Fix unit tests due to constructor taking the store.

* Add unit tests for serializing and deserializing the consensus context.

* Combine `ConsensusContext.ChangeView()` and `ConsensusContext.Reset()`

* Add `PreparationHash` field to `PrepareResponse` to prevent replay attacks from malicious primary (#576)

* Fixed a problem where `PrepareResponse.PreparationHash` was not assigned.

* Load context from store only when height matches

* Recover nodes requesting ChangeView when possible (#579)

* Fixes bug in `OnPrepareRequestReceived()`

* Send `RecoveryMessage` only when `message.NewViewNumber <= context.ViewNumber`

* Fix and optimize view changing (#590)

* Allow to ignore the recovery logs

* Add `isRecovering` (#594)

* Fix accepting own prepare request (#596)

* Pick some changes from #575.

* Fixes `Prefixes`

* Restore transactions from saved consensus context (#598)

* Refactoring

* AggressiveInlining (#606)

* Reset Block reference when consensus context is initialized after block persist. (#608)

* Change `ConsensusPayload` for compatibility (#609)
Thacryba pushed a commit to simplitech/neo that referenced this pull request Feb 17, 2020
* 2.8.0 release branch

* add English version
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.

2 participants