grin/api/src
John Tromp 48efb693e2
Fixfees (#3481)
* add FeeFields type

* use FeeFields with ::zero and try_into().unwrap()

* fixed tests

* avoid 0 accept_base_fee

* add aggregate_fee_fields method for transaction

* implement std::fmt::Display trait for FeeFields

* make base_fee argument non-optional in libtx::mod::tx_fee

* add global and thread local accept_fee_base; use to simplify tests

* set unusually high fee base for a change

* revert to optional base fee argument; default coming from either grin-{server,wallet}.toml

* remove optional base fee argument; can be set with global::set_local_accept_fee_base instead

* define constant global::DEFAULT_ACCEPT_FEE_BASE and set global value

* add Transaction::accept_fee() method and use

* Manual (de)ser impl on FeeFields

* fix comment bug

* Serialize FeeFields as int in tx

* allow feefields: u32:into() for tests

* try adding height args everywhere

* make FeeFields shift/fee methods height dependent

* prior to hf4 feefield testing

* rename selected fee_fields back to fee for serialization compatibility

* fix test_fee_fields test, merge conflict, and doctest use of obsolete fee_fields

* make accept_fee height dependent

* Accept any u64 in FeeFields deser

Co-authored-by: Jasper van der Maarel <j@sper.dev>
2020-11-26 18:03:06 +01:00
..
handlers Flexible peer filtering (#3458) 2020-10-27 12:36:00 +00:00
auth.rs Update hyper/tokio/futures dependencies (#3214) 2020-02-18 23:45:27 +01:00
client.rs Update hyper/tokio/futures dependencies (#3214) 2020-02-18 23:45:27 +01:00
foreign.rs Disable merkle proofs for v2 get_block (#3487) 2020-11-09 14:56:01 -05:00
foreign_rpc.rs Disable merkle proofs for v2 get_block (#3487) 2020-11-09 14:56:01 -05:00
handlers.rs Disable API v1 (#3503) 2020-11-25 19:36:29 +00:00
lib.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
owner.rs Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
owner_rpc.rs Fix #3380 Broken API Links (#3381) 2020-08-17 13:28:38 -04:00
rest.rs API: don't error on missing output (#3256) 2020-03-04 23:42:10 +01:00
router.rs Update hyper/tokio/futures dependencies (#3214) 2020-02-18 23:45:27 +01:00
types.rs Fixfees (#3481) 2020-11-26 18:03:06 +01:00
web.rs Update hyper/tokio/futures dependencies (#3214) 2020-02-18 23:45:27 +01:00