Skip to content

WIP: VM work#1

Open
NateAtNodeKit wants to merge 43 commits intomainfrom
vm
Open

WIP: VM work#1
NateAtNodeKit wants to merge 43 commits intomainfrom
vm

Conversation

@NateAtNodeKit
Copy link

No description provided.


impl Transfer {
pub fn new(from_address: Address, to_address: Address, value: u64) -> Result<Transfer, TransferError> {
let empty_memo = b"".to_vec();
Copy link

Choose a reason for hiding this comment

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

Should transfer also have a type id? Also are we going to have both Transfer and SequncerMsg inherit properties from a common interface?

}

impl<R: Rng + Spawner + Metrics + Clock> Router<R> {
const PATH_SUBMIT_BLOCK: &'static str = "/builder/submit";
Copy link

Choose a reason for hiding this comment

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

I don't think we need to have a submit block function here

pub struct StateDb {
db: Box<dyn Database>,
}
// can use like a redis from Arcadia like get and set for diff types?
Copy link

Choose a reason for hiding this comment

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

Redis will introduce too much latency for this

pub chain_id: u64,
pub data: Vec<u8>,
pub from_address: Address,
pub relayer_id: u64,
Copy link

Choose a reason for hiding this comment

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

@manojkgorle do we still need a relayer id ?

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.

4 participants