Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move payload processor and add wrapper for payload #3498

Merged

Conversation

stringhandler
Copy link
Collaborator

Description

Adds a wrapper to the payload in Hotstuff Messages to allow adding fields in future. For now just added the checkpoint in preparation for committees to vote on it.

Also moved the PayloadProcessor step to prepare. If the payload processor fails because the instructions are not valid at that point, it will not vote to prepare

How Has This Been Tested?

run locally

Copy link
Contributor

@delta1 delta1 left a comment

Choose a reason for hiding this comment

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

LGTM, untested

@stringhandler stringhandler merged commit a6391a6 into tari-project:validator-node Oct 26, 2021
@stringhandler stringhandler deleted the mb-tari-dan-payload branch October 26, 2021 13:04
stringhandler pushed a commit that referenced this pull request Apr 25, 2023
Description
---
The PR prevents panic in getting the first output of the
`UtxoScannerTask`.

Motivation and Context
---
The `tari_console_wallet` app fails when a node is syncing:

```
 Base Node Status  - Chain Tip: #3498  Syncing...  Latency 630 ms
thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 0 but the index is 0',
/home/denis/tari/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs:484:37────────
 Network: esmeralda        Version: 0.50.0-pre.0    LeftArrow: Previous Tab  Tab/RightArrow: Next Tab
F10/Ctrl-note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)
```

P.S. I wonder if the `None` value of the `first_output` variable breaks
something, and we must panic there.

How Has This Been Tested?
---
Manually, by starting the `tari_console_wallet` with the changes.
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