-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add minimal fees to config * parse config * update operation pool to not include op with fee < config.fee * return minimal_fees in node get_status (rpc api) * update massa-client to reject op with fee < minimal_fees * update proto-rs sc-runtime rev * update massa-api * grpc get_status * update massa grpc * clippy * massa-api unit test * fix test * PR comment * fix config.toml * massa-sc-runtime target main
- Loading branch information
Showing
19 changed files
with
291 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Copyright (c) 2022 MASSA LABS <[email protected]> | ||
|
||
use massa_models::amount::Amount; | ||
use massa_signature::KeyPair; | ||
use massa_time::MassaTime; | ||
use std::net::SocketAddr; | ||
|
@@ -81,4 +82,6 @@ pub struct APIConfig { | |
pub chain_id: u64, | ||
/// Delta to compute upper bounds when fetching deferred credits | ||
pub deferred_credits_delta: MassaTime, | ||
/// minimal fees to include an operation in a block | ||
pub minimal_fees: Amount, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Copyright (c) 2022 MASSA LABS <[email protected]> | ||
|
||
use massa_models::amount::Amount; | ||
use massa_models::node::NodeId; | ||
use massa_models::stats::{ConsensusStats, ExecutionStats, NetworkStats}; | ||
use massa_models::{config::CompactConfig, slot::Slot, version::Version}; | ||
|
@@ -43,6 +44,8 @@ pub struct NodeStatus { | |
pub config: CompactConfig, | ||
/// chain id | ||
pub chain_id: u64, | ||
/// minimal fees to include an operation in a block | ||
pub minimal_fees: Amount, | ||
} | ||
|
||
impl std::fmt::Display for NodeStatus { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// Copyright (c) 2023 MASSA LABS <[email protected]> | ||
|
||
use massa_models::amount::Amount; | ||
use massa_signature::KeyPair; | ||
use massa_time::MassaTime; | ||
use serde::Deserialize; | ||
|
@@ -133,6 +134,8 @@ pub struct GrpcConfig { | |
pub client_private_key_path: PathBuf, | ||
/// chain id | ||
pub chain_id: u64, | ||
/// minimal fees | ||
pub minimal_fees: Amount, | ||
} | ||
|
||
/// gRPC API configuration. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.