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

add pvm instructions 5.10, 5.11, 5.12 #84

Merged
merged 9 commits into from
Aug 29, 2024
Merged

Conversation

qiweiii
Copy link
Contributor

@qiweiii qiweiii commented Aug 27, 2024

No description provided.

@@ -70,7 +70,7 @@ extension Ref where T == ProtocolConfig {
maxEncodedWorkReportSize: 96 * 1 << 10,
erasureCodedSegmentSize: 6,
ticketSubmissionEndSlot: 500,
pvmDynamicAddressAlignmentFactor: 4,
pvmDynamicAddressAlignmentFactor: 2,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

need to use these in PolkaVM package, should I move this file to Utils or just move these pvm consts to PolkaVM

Copy link
Member

Choose a reason for hiding this comment

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

Try to see if we can use generic.

protocol PvmConfig {
  var pvmDynamicAddressAlignmentFactor: Int { get }
}

and

extension ProtocolConfig: PvmConfig {}

so that when testing PVM, we only need to create a PvmConfig, without get the whole ProtocolConfig in.

@qiweiii qiweiii changed the title add pvm instructions 5.10, 5.11 add pvm instructions 5.10, 5.11, 5.12 Aug 28, 2024
PolkaVM/Sources/PolkaVM/Instructions.swift Outdated Show resolved Hide resolved
PolkaVM/Sources/PolkaVM/Instructions.swift Outdated Show resolved Hide resolved
qiweiii and others added 2 commits August 28, 2024 18:08
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com>
@xlc
Copy link
Member

xlc commented Aug 28, 2024

Only 68 failing pvm tests 🔥

@qiweiii qiweiii merged commit 624316d into master Aug 29, 2024
2 checks passed
@qiweiii qiweiii deleted the pvm/instructions-5.10 branch August 29, 2024 01:29
MacOMNI added a commit that referenced this pull request Aug 29, 2024
* 'master' of github.com:AcalaNetwork/boka:
  add pvm instructions 5.10, 5.11, 5.12 (#84)
  recent history tests are fixed now (#88)
  support offenders in safrole (#87)
  Recent history test (#85)
MacOMNI added a commit that referenced this pull request Aug 29, 2024
* master:
  update
  add pvm instructions 5.10, 5.11, 5.12 (#84)
  recent history tests are fixed now (#88)
  support offenders in safrole (#87)
  Recent history test (#85)
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