Skip to content

Commit f3deb6a

Browse files
authored
Remove notify message (#2402)
* Remove the Notify message. * Remove an unnecessary allocation. * Update application IDs in README files. * Fix SDK tests to not expect the Notify message.
1 parent 98609fb commit f3deb6a

File tree

10 files changed

+34
-88
lines changed

10 files changed

+34
-88
lines changed

examples/hex-game/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sleep 1
7474
The `start` mutation starts a new game. We specify the two players using their new public keys,
7575
on [`http://localhost:8080/chains/$CHAIN_1/applications/$APP_ID`][main_chain]:
7676

77-
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
77+
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
7878
mutation {
7979
start(
8080
players: [
@@ -89,7 +89,7 @@ mutation {
8989

9090
The app's main chain keeps track of the games in progress, by public key:
9191

92-
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
92+
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
9393
query {
9494
gameChains {
9595
keys(count: 3)
@@ -99,7 +99,7 @@ query {
9999

100100
It contains the temporary chain's ID, and the ID of the message that created it:
101101

102-
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
102+
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
103103
query {
104104
gameChains {
105105
entry(key: "8a21aedaef74697db8b676c3e03ddf965bf4a808dc2bcabb6d70d6e6e3022ff7") {

examples/hex-game/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ sleep 1
7878
The `start` mutation starts a new game. We specify the two players using their new public keys,
7979
on [`http://localhost:8080/chains/$CHAIN_1/applications/$APP_ID`][main_chain]:
8080
81-
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
81+
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
8282
mutation {
8383
start(
8484
players: [
@@ -93,7 +93,7 @@ mutation {
9393
9494
The app's main chain keeps track of the games in progress, by public key:
9595
96-
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
96+
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
9797
query {
9898
gameChains {
9999
keys(count: 3)
@@ -103,7 +103,7 @@ query {
103103
104104
It contains the temporary chain's ID, and the ID of the message that created it:
105105
106-
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
106+
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
107107
query {
108108
gameChains {
109109
entry(key: "8a21aedaef74697db8b676c3e03ddf965bf4a808dc2bcabb6d70d6e6e3022ff7") {

examples/social/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ linera --with-wallet 0 project publish-and-create examples/social
5353
This will output the new application ID, e.g.:
5454

5555
```rust
56-
e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
56+
e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
5757
```
5858

5959
With the `wallet show` command you can find the ID of the application creator's chain:
@@ -88,7 +88,7 @@ one of the chain where it isn't registered yet:
8888
mutation {
8989
requestApplication(
9090
chainId: "1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03",
91-
applicationId: "e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000"
91+
applicationId: "e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000"
9292
)
9393
}
9494
```
@@ -108,20 +108,20 @@ query {
108108
```
109109

110110
Open both URLs under the entry `link`. Now you can use the application on each chain.
111-
E.g. [in the 8081 tab](http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000)
111+
E.g. [in the 8081 tab](http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000)
112112
subscribe to the other chain:
113113

114-
```gql,uri=http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
114+
```gql,uri=http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
115115
mutation {
116116
subscribe(
117117
chainId: "e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65"
118118
)
119119
}
120120
```
121121

122-
Now make a post [in the 8080 tab](http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000):
122+
Now make a post [in the 8080 tab](http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000):
123123

124-
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
124+
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
125125
mutation {
126126
post(
127127
text: "Linera Social is the new Mastodon!"
@@ -132,7 +132,7 @@ mutation {
132132

133133
Since 8081 is a subscriber. Let's see if it received any posts: # You can see the post on running the [web-frontend](./web-frontend/), or follow the steps below.
134134

135-
```gql,uri=http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
135+
```gql,uri=http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
136136
query { receivedPosts { keys { timestamp author index } } }
137137
```
138138

examples/social/src/lib.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ linera --with-wallet 0 project publish-and-create examples/social
6262
This will output the new application ID, e.g.:
6363
6464
```ignore
65-
e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
65+
e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
6666
```
6767
6868
With the `wallet show` command you can find the ID of the application creator's chain:
@@ -97,7 +97,7 @@ one of the chain where it isn't registered yet:
9797
mutation {
9898
requestApplication(
9999
chainId: "1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03",
100-
applicationId: "e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000"
100+
applicationId: "e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000"
101101
)
102102
}
103103
```
@@ -117,20 +117,20 @@ query {
117117
```
118118
119119
Open both URLs under the entry `link`. Now you can use the application on each chain.
120-
E.g. [in the 8081 tab](http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000)
120+
E.g. [in the 8081 tab](http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000)
121121
subscribe to the other chain:
122122
123-
```gql,uri=http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
123+
```gql,uri=http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
124124
mutation {
125125
subscribe(
126126
chainId: "e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65"
127127
)
128128
}
129129
```
130130
131-
Now make a post [in the 8080 tab](http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000):
131+
Now make a post [in the 8080 tab](http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000):
132132
133-
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
133+
```gql,uri=http://localhost:8080/chains/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
134134
mutation {
135135
post(
136136
text: "Linera Social is the new Mastodon!"
@@ -141,7 +141,7 @@ mutation {
141141
142142
Since 8081 is a subscriber. Let's see if it received any posts: # You can see the post on running the [web-frontend](./web-frontend/), or follow the steps below.
143143
144-
```gql,uri=http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000001000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
144+
```gql,uri=http://localhost:8081/chains/1db1936dad0717597a7743a8353c9c0191c14c3a129b258e9743aec2b4f05d03/applications/e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65010000000000000000000000e476187f6ddfeb9d588c7b45d3df334d5501d6499b3f9ad5595cae86cce16a65030000000000000000000000
145145
query { receivedPosts { keys { timestamp author index } } }
146146
```
147147

linera-chain/src/chain.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1182,16 +1182,15 @@ where
11821182
}
11831183
let full_names = raw_outcome
11841184
.subscribe
1185-
.clone()
1186-
.into_iter()
1185+
.iter()
11871186
.map(|(name, _id)| ChannelFullName {
11881187
application_id,
1189-
name,
1188+
name: name.clone(),
11901189
})
11911190
.collect::<Vec<_>>();
11921191
let channels = self.channels.try_load_entries_mut(&full_names).await?;
1193-
let stream = raw_outcome.subscribe.into_iter().zip(channels);
1194-
let stream = stream::iter(stream)
1192+
let subscribe_channels = raw_outcome.subscribe.into_iter().zip(channels);
1193+
let stream = stream::iter(subscribe_channels)
11951194
.map(|((name, id), mut channel)| async move {
11961195
let mut result = None;
11971196
let full_name = ChannelFullName {

linera-core/src/unit_tests/wasm_worker_tests.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -339,16 +339,7 @@ where
339339
let publisher_state_hash = publisher_system_state.into_hash().await;
340340
let accept_block_proposal = HashedCertificateValue::new_confirmed(
341341
BlockExecutionOutcome {
342-
messages: vec![vec![OutgoingMessage {
343-
destination: Destination::Recipient(creator_chain.into()),
344-
authenticated_signer: None,
345-
grant: Amount::ZERO,
346-
refund_grant_to: None,
347-
kind: MessageKind::Protected,
348-
message: Message::System(SystemMessage::Notify {
349-
id: creator_chain.into(),
350-
}),
351-
}]],
342+
messages: vec![Vec::new()],
352343
events: vec![Vec::new()],
353344
state_hash: publisher_state_hash,
354345
oracle_responses: vec![Vec::new()],

linera-core/src/unit_tests/worker_tests.rs

+6-24
Original file line numberDiff line numberDiff line change
@@ -2399,11 +2399,7 @@ where
23992399
&worker,
24002400
HashedCertificateValue::new_confirmed(
24012401
BlockExecutionOutcome {
2402-
messages: vec![vec![direct_outgoing_message(
2403-
user_id,
2404-
MessageKind::Protected,
2405-
SystemMessage::Notify { id: user_id },
2406-
)]],
2402+
messages: vec![Vec::new()],
24072403
events: vec![Vec::new()],
24082404
state_hash: SystemExecutionState {
24092405
// The root chain knows both committees at the end.
@@ -2489,13 +2485,11 @@ where
24892485
.added_bundles
24902486
.read_front(10)
24912487
.await?[..],
2492-
[bundle1, bundle2, bundle3]
2488+
[bundle1, bundle2]
24932489
if matches!(bundle1.messages[..], [PostedMessage {
24942490
message: Message::System(SystemMessage::OpenChain(_)), ..
24952491
}]) && matches!(bundle2.messages[..], [PostedMessage {
24962492
message: Message::System(SystemMessage::Credit { .. }), ..
2497-
}]) && matches!(bundle3.messages[..], [PostedMessage {
2498-
message: Message::System(SystemMessage::Notify { .. }), ..
24992493
}])
25002494
);
25012495
let channel_inbox = user_chain
@@ -2517,8 +2511,8 @@ where
25172511
&worker,
25182512
HashedCertificateValue::new_confirmed(
25192513
BlockExecutionOutcome {
2520-
messages: vec![Vec::new(); 4],
2521-
events: vec![Vec::new(); 4],
2514+
messages: vec![Vec::new(); 3],
2515+
events: vec![Vec::new(); 3],
25222516
state_hash: SystemExecutionState {
25232517
subscriptions: [ChannelSubscription {
25242518
chain_id: admin_id,
@@ -2534,7 +2528,7 @@ where
25342528
}
25352529
.into_hash()
25362530
.await,
2537-
oracle_responses: vec![Vec::new(); 4],
2531+
oracle_responses: vec![Vec::new(); 3],
25382532
}
25392533
.with(
25402534
make_first_block(user_id)
@@ -2585,18 +2579,6 @@ where
25852579
.to_posted(1, MessageKind::Tracked)],
25862580
},
25872581
action: MessageAction::Accept,
2588-
})
2589-
.with_incoming_bundle(IncomingBundle {
2590-
origin: Origin::chain(admin_id),
2591-
bundle: MessageBundle {
2592-
certificate_hash: certificate2.value.hash(),
2593-
height: BlockHeight::from(2),
2594-
timestamp: Timestamp::from(0),
2595-
transaction_index: 0,
2596-
messages: vec![Message::System(SystemMessage::Notify { id: user_id })
2597-
.to_posted(0, MessageKind::Protected)],
2598-
},
2599-
action: MessageAction::Accept,
26002582
}),
26012583
),
26022584
),
@@ -2633,7 +2615,7 @@ where
26332615
.try_load_entry(&Origin::chain(admin_id))
26342616
.await?
26352617
.expect("Missing inbox for admin chain in user chain");
2636-
assert_eq!(inbox.next_block_height_to_receive()?, BlockHeight(3));
2618+
assert_eq!(inbox.next_block_height_to_receive()?, BlockHeight(2));
26372619
assert_eq!(inbox.added_bundles.count(), 0);
26382620
assert_eq!(inbox.removed_bundles.count(), 0);
26392621
}

0 commit comments

Comments
 (0)