-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactorings in Receipt_chain_database
- Changed transactions to payments to be aligned to our terminologies - Change name of module to receipt_chain_database_lib. We will instantiate it later in Coda_main. Renaming is to avoid name shadowing when insantiating
- Loading branch information
Showing
9 changed files
with
89 additions
and
100 deletions.
There are no files selected for viewing
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 was deleted.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Make | ||
(Payment : Intf.Payment) | ||
(Receipt_chain_hash : Intf.Receipt_chain_hash | ||
with type payment_payload := Payment.payload) | ||
(Key_value_db : Key_value_database.S | ||
with type key := Receipt_chain_hash.t | ||
and type value := | ||
(Receipt_chain_hash.t, Payment.t) Tree_node.t) : | ||
Intf.Test.S | ||
with type receipt_chain_hash := Receipt_chain_hash.t | ||
and type payment := Payment.t | ||
and type database := Key_value_db.t |
8 changes: 4 additions & 4 deletions
8
src/lib/receipt_chain_database/dune → src/lib/receipt_chain_database_lib/dune
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,9 +1,9 @@ | ||
(library | ||
(name receipt_chain_database) | ||
(public_name receipt_chain_database) | ||
(name receipt_chain_database_lib) | ||
(public_name receipt_chain_database_lib) | ||
(library_flags (-linkall)) | ||
(libraries core key_value_database) | ||
(inline_tests) | ||
(preprocess (pps ppx_jane ppx_deriving.eq)) | ||
(synopsis "A library that contains a database that records sent transactions for an individual account and generates a merkle list of a transaction. | ||
Also, the library contains a verifier that proves the correctness of a merkle list of transactions")) | ||
(synopsis "A library that contains a database that records sent payments for an individual account and generates a merkle list of a payment. | ||
Also, the library contains a verifier that proves the correctness of a merkle list of payments")) |
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
File renamed without changes.
Oops, something went wrong.