Convert all UK spelling to US (#2138)

* all the ise

* forgot a misspelling

* a few more replacements

* bump impl

* rollback and fixes

* bump impl again

* Add aliases for RPC

* Update on_demand.rs
This commit is contained in:
joe petrowski
2019-03-29 14:11:45 +01:00
committed by Gav Wood
parent a10e86ba5a
commit 0ddcbf747f
74 changed files with 453 additions and 451 deletions
+8 -8
View File
@@ -157,7 +157,7 @@ fn should_return_block_hash() {
#[test]
fn should_return_finalised_hash() {
fn should_return_finalized_hash() {
let core = ::tokio::runtime::Runtime::new().unwrap();
let remote = core.executor();
@@ -167,23 +167,23 @@ fn should_return_finalised_hash() {
};
assert_matches!(
client.finalised_head(),
client.finalized_head(),
Ok(ref x) if x == &client.client.genesis_hash()
);
// import new block
let builder = client.client.new_block().unwrap();
client.client.import(BlockOrigin::Own, builder.bake().unwrap()).unwrap();
// no finalisation yet
// no finalization yet
assert_matches!(
client.finalised_head(),
client.finalized_head(),
Ok(ref x) if x == &client.client.genesis_hash()
);
// finalise
// finalize
client.client.finalize_block(BlockId::number(1), None, true).unwrap();
assert_matches!(
client.finalised_head(),
client.finalized_head(),
Ok(ref x) if x == &client.client.block_hash(1).unwrap().unwrap()
);
}
@@ -220,7 +220,7 @@ fn should_notify_about_latest_block() {
}
#[test]
fn should_notify_about_finalised_block() {
fn should_notify_about_finalized_block() {
let mut core = ::tokio::runtime::Runtime::new().unwrap();
let remote = core.executor();
let (subscriber, id, transport) = Subscriber::new_test("test");
@@ -231,7 +231,7 @@ fn should_notify_about_finalised_block() {
subscriptions: Subscriptions::new(remote),
};
api.subscribe_finalised_heads(Default::default(), subscriber);
api.subscribe_finalized_heads(Default::default(), subscriber);
// assert id assigned
assert_eq!(core.block_on(id), Ok(Ok(SubscriptionId::Number(1))));