Rename Request::Transfer to Request::Transaction
This commit is contained in:
parent
6543497c17
commit
e701ccc949
@ -11,7 +11,7 @@ pub struct AccountantSkel {
|
|||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub enum Request {
|
pub enum Request {
|
||||||
Transfer {
|
Transaction {
|
||||||
from: PublicKey,
|
from: PublicKey,
|
||||||
to: PublicKey,
|
to: PublicKey,
|
||||||
val: i64,
|
val: i64,
|
||||||
@ -43,7 +43,7 @@ impl AccountantSkel {
|
|||||||
|
|
||||||
pub fn process_request(self: &mut Self, msg: Request) -> Option<Response> {
|
pub fn process_request(self: &mut Self, msg: Request) -> Option<Response> {
|
||||||
match msg {
|
match msg {
|
||||||
Request::Transfer {
|
Request::Transaction {
|
||||||
from,
|
from,
|
||||||
to,
|
to,
|
||||||
val,
|
val,
|
||||||
|
@ -33,7 +33,7 @@ impl AccountantStub {
|
|||||||
last_id: Sha256Hash,
|
last_id: Sha256Hash,
|
||||||
sig: Signature,
|
sig: Signature,
|
||||||
) -> io::Result<usize> {
|
) -> io::Result<usize> {
|
||||||
let req = Request::Transfer {
|
let req = Request::Transaction {
|
||||||
from,
|
from,
|
||||||
to,
|
to,
|
||||||
val,
|
val,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user