@@ -27,14 +27,14 @@ use serde::{Deserialize, Serialize};
27
27
mod tests;
28
28
29
29
#[ derive( Debug , Default , Serialize , Deserialize ) ]
30
- pub struct DNCTx {
30
+ pub struct DFCTx {
31
31
from : String ,
32
32
to : String ,
33
33
amount : i64 ,
34
34
signature : String ,
35
35
}
36
36
37
- // NOTE(surangap): keeping DMCTx as separate struct from DNCTx for now
37
+ // NOTE(surangap): keeping DMCTx as separate struct from DFCTx for now
38
38
#[ derive( Debug , Default , Serialize , Deserialize ) ]
39
39
pub struct DMCTx {
40
40
from : String ,
@@ -55,13 +55,13 @@ where
55
55
fn get_block ( & self , at : Option < NumberFor < Block > > ) -> RpcResult < Vec < u8 > > ;
56
56
57
57
#[ method( name = "metaConsensusRpc_mintBlock" ) ]
58
- async fn mint_block ( & self , dnc_txs : Vec < DNCTx > ) -> RpcResult < ( Vec < u8 > , Vec < DMCTx > ) > ;
58
+ async fn mint_block ( & self , dfc_txs : Vec < DFCTx > ) -> RpcResult < ( Vec < u8 > , Vec < DMCTx > ) > ;
59
59
60
60
#[ method( name = "metaConsensusRpc_connectBlock" ) ]
61
61
async fn connect_block (
62
62
& self ,
63
63
dmc_payload : Vec < u8 > ,
64
- dnc_txs : Vec < DNCTx > ,
64
+ dfc_txs : Vec < DFCTx > ,
65
65
) -> RpcResult < ( bool , Vec < DMCTx > ) > ;
66
66
}
67
67
@@ -135,8 +135,8 @@ where
135
135
}
136
136
}
137
137
138
- async fn mint_block ( & self , dnc_txs : Vec < DNCTx > ) -> RpcResult < ( Vec < u8 > , Vec < DMCTx > ) > {
139
- //TODO(surangap): validate the dnc_txs . do the account balance changes accordingly
138
+ async fn mint_block ( & self , dfc_txs : Vec < DFCTx > ) -> RpcResult < ( Vec < u8 > , Vec < DMCTx > ) > {
139
+ //TODO(surangap): validate the dfc_txs . do the account balance changes accordingly
140
140
141
141
// send command to mint the next block
142
142
let sink = self . command_sink . clone ( ) ;
@@ -171,7 +171,7 @@ where
171
171
async fn connect_block (
172
172
& self ,
173
173
dmc_payload : Vec < u8 > ,
174
- dnc_txs : Vec < DNCTx > ,
174
+ dfc_txs : Vec < DFCTx > ,
175
175
) -> RpcResult < ( bool , Vec < DMCTx > ) > {
176
176
// decode the signed block
177
177
let decoded = SignedBlock :: decode ( & mut & dmc_payload[ ..] ) ;
0 commit comments