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

InitActor framework #76

Merged
merged 5 commits into from
Dec 9, 2019
Merged

InitActor framework #76

merged 5 commits into from
Dec 9, 2019

Conversation

austinabell
Copy link
Contributor

  • Implements Setup InitActor framework #71 sets up structure of a system actor (InitActor) which will allow the construction of other Actors.
  • Refactored VM code
  • Added System and user error codes based on spec

For now since the other types and implementations aren't built out, this can't be tested. Once it is able to be tested I will test functionality.

If anyone want's to review let me know and I won't make changes but I might tweak some things over the weekend and build on top of this if not, but will try to keep this PR as contained as possible.

// TODO revisit on complete spec
pub const METHOD_PLACEHOLDER: isize = 3;

pub struct MethodParams(pub Vec<u8>); // TODO
Copy link
Member

Choose a reason for hiding this comment

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

why make the vec public?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did so because the vector will need to be pulled from the MethodParams when the functionality is implemented. It's possible in the future this can be removed in favour of implemented functions, but it will be a headache if this is kept private in the near future

@@ -11,6 +11,7 @@ use encoding::{blake2b_variable, Cbor, CodecProtocol, Error as EncodingError};
use leb128;
use serde_cbor::Value::Bytes;
use serde_cbor::{from_slice, to_vec};
use std::hash::Hash;
Copy link
Member

Choose a reason for hiding this comment

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

hot fire 🔥

Copy link
Member

Choose a reason for hiding this comment

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

hash browns eh? @ansermino

vm/src/runtime/input.rs Outdated Show resolved Hide resolved
@austinabell
Copy link
Contributor Author

@GregTheGreek @ansermino you guys good with this coming in?

@austinabell austinabell merged commit 054f25d into master Dec 9, 2019
@austinabell austinabell deleted the austin/initactor branch December 9, 2019 19:50
vmx pushed a commit to dignifiedquire/forest that referenced this pull request Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants