medibloc / panacea-core

MediBloc Blockchain Core
https://medibloc.com
Other
60 stars 19 forks source link

Improve upgrade oracle tx processing after upgrade target height #605

Closed audtlr24 closed 1 year ago

audtlr24 commented 1 year ago

In Panacea, upgrade-oracle tx is processed after reaching the upgrade height, but this is not reflected in the Oracle store. Because the part that set to the Oracle store only works in BeginBlocker.

Therefore, we need to modify the function so that this part can be applied. For example, in ApproveOracleUpgrade, we can check the uniqueID of Params and call SetOracle.