Node API v2 (#3094)

* Node API v2

* Update gitignore

* Add get_pmmr_indices method

* Add Foreign and Owner API each one with specific secret

* Fix failing tests

* Revert to 'Option<u64>'
This commit is contained in:
Quentin Le Sceller
2019-12-06 11:57:53 +01:00
committed by Antioch Peverell
parent 8b8f0a0abd
commit cdb2d6c72c
30 changed files with 2737 additions and 69 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ fn default_mineable_max_weight() -> usize {
/// Represents a single entry in the pool.
/// A single (possibly aggregated) transaction.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct PoolEntry {
/// Info on where this tx originated from.
pub src: TxSource,
@@ -165,7 +165,7 @@ pub struct PoolEntry {
///
/// Most likely this will evolve to contain some sort of network identifier,
/// once we get a better sense of what transaction building might look like.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub enum TxSource {
PushApi,
Broadcast,