zebra/zebra-state/src
Alfredo Garcia ee3c992ca6
Calculate the remaining value in the transparent transaction value pool (#2486)
* add value_balance methods to transparent and shielded

* add value_balance() to transaction

* check the remaining value consensus rule

* change error name

* fix doc and nitpick

* refactor value_balance() method for joinsplit

* changes to value_balance() of Inputs

* implement joinsplits() method(not working)

* remove created methods

* remove special case

* change return error in utilities

* move utils functions to transaction methods

* fix the docs

* simplify some code

* add constrains explicitly

* remove turbofish

* refactor some transaction methods

* fix value balance signs, add docs

* simplify some code

* avoid panic in consensus check

* add missing doc

* move remaining value balance check to the state

* make changes from the last review

Co-authored-by: teor <teor@riseup.net>
2021-07-29 13:49:36 +10:00
..
service Calculate the remaining value in the transparent transaction value pool (#2486) 2021-07-29 13:49:36 +10:00
tests Add `proptest-impl` feature to `zebra-state` (#2529) 2021-07-28 00:01:19 +00:00
arbitrary.rs Add `proptest-impl` feature to `zebra-state` (#2529) 2021-07-28 00:01:19 +00:00
config.rs Construct structs with ..default() to avoid a lint 2021-01-19 11:02:20 -05:00
constants.rs Update docs for coinbase maturity for NU5 (#2248) 2021-06-04 09:57:41 -03:00
error.rs Calculate the remaining value in the transparent transaction value pool (#2486) 2021-07-29 13:49:36 +10:00
lib.rs Add `zebra_state::init_test` helper function for tests (#2539) 2021-07-28 20:55:01 -03:00
request.rs Add an OrderedUtxo type for transparent spend validation (#2502) 2021-07-19 10:52:32 -03:00
response.rs move `Utxo` type to zebra-chain (#2481) 2021-07-12 12:49:33 +10:00
service.rs Add `zebra_state::init_test` helper function for tests (#2539) 2021-07-28 20:55:01 -03:00
tests.rs Add `proptest-impl` feature to `zebra-state` (#2529) 2021-07-28 00:01:19 +00:00
util.rs swap best_chain_len and related constants to u32 for consistency (#1257) 2020-11-06 14:00:10 +10:00