Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Bug fixes

* [#1918](https://github.com/crypto-org-chain/cronos/pull/1918) Chore: cleanup and improve x/mint params validation and test in cosmos-sdk
* [#1923](https://github.com/crypto-org-chain/cronos/pull/1911) Fix: LastBlockList should be set at the end

*Nov 30, 2025*

Expand Down
5 changes: 3 additions & 2 deletions app/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ func (h *ProposalHandler) SetBlockList(blob []byte) error {
if bytes.Equal(h.lastBlockList, blob) {
return nil
}
h.lastBlockList = make([]byte, len(blob))
copy(h.lastBlockList, blob)

if len(blob) == 0 {
h.blocklist = make(map[string]struct{})
Expand Down Expand Up @@ -139,6 +137,9 @@ func (h *ProposalHandler) SetBlockList(blob []byte) error {
}

h.blocklist = m
h.lastBlockList = make([]byte, len(blob))
copy(h.lastBlockList, blob)

return nil
}

Expand Down
Loading