Skip to content

Aura consensus for edgeware, following the polkadot releases

Notifications You must be signed in to change notification settings

flipchan/edg-aura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Aura(polkadot-v0.9.19) with modified

let runtime_api = self.client.runtime_api();
		let at = &BlockId::Hash(parent_hash);
		runtime_api.initialize_block(at, &block.header)
			.map_err(|e| format!("Error initializing block {:?}: {:?}", parent_hash, e))?;

		let authorities=runtime_api
			.authorities(at)
			.map_err(|e| format!("Could not fetch authorities at {:?}: {:?}", parent_hash, e))?;

Aura (Authority-round) consensus in substrate.

Aura works by having a list of authorities A who are expected to roughly agree on the current time. Time is divided up into discrete slots of t seconds each. For each slot s, the author of that slot is A[s % |A|].

The author is allowed to issue one block but not more during that slot, and it will be built upon the longest valid chain that has been seen.

Blocks from future steps will be either deferred or rejected depending on how far in the future they are.

NOTE: Aura itself is designed to be generic over the crypto used.

License: GPL-3.0-or-later WITH Classpath-exception-2.0

About

Aura consensus for edgeware, following the polkadot releases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages