Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Offset v2 protocol #308

Open
wants to merge 478 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
478 commits
Select commit Hold shift + click to select a range
1f04f23
funder: Moved RelayClient trait to types submodule
realcr Dec 3, 2020
e6b2c38
funder: Removed legacy code
realcr Dec 3, 2020
8a04881
funder: Added switch submodule empty files
realcr Dec 8, 2020
04de42d
funder: Renamed db clients
realcr Dec 8, 2020
e323e40
funder: Renamed trait method
realcr Dec 8, 2020
889abee
funder: Initial switch interface
realcr Dec 8, 2020
79abb64
funder: Some work on switch's interface
realcr Dec 9, 2020
95cd3c0
proto: Added RelaysAck message
realcr Dec 13, 2020
4693621
funder: Using the more general FriendMessage over MoveToken
realcr Dec 13, 2020
8c73f7a
proto: Updated RelaysUpdate message (updateId -> generation)
realcr Dec 13, 2020
1618c8c
funder: Work on set_friend_online(). Not done yet
realcr Dec 13, 2020
f9f0551
proto: Added RelayPort
realcr Dec 16, 2020
1ecf602
proto: Renamed RelayPort -> NodePort
realcr Dec 16, 2020
b82478d
funder: impl RangGen for NodePort
realcr Dec 16, 2020
85ac6fc
proto: NodePort is now a buffer instead of u128
realcr Dec 16, 2020
26a2b0d
funder: switch refactor and set_friend_online() fix
realcr Dec 16, 2020
824f038
funder: Initial idea for collect_outgoing_move_token()
realcr Dec 16, 2020
5172cf4
database: Work on currency removal feature
realcr Dec 16, 2020
89edda4
funder: Comment
realcr Dec 16, 2020
d2f14b2
funder: Comment update
realcr Dec 16, 2020
f220d6f
database: Renamed column (generation -> index)
realcr Dec 22, 2020
a6f81ea
database: Renamed index -> queue_index (Reserved keyword)
realcr Dec 22, 2020
a8bfb0a
database: Split queue to multiple queues, according to friend_public_key
realcr Dec 22, 2020
1606ca8
funder: derive Debug for Liveness
realcr Dec 22, 2020
70d14e9
proto: Added TODO comment (Renaming)
realcr Dec 22, 2020
70805f1
funder: Some work on collect_outgoing_move_token()
realcr Dec 22, 2020
e875dd5
funder: Work on collect_outgoing_move_token()
realcr Dec 22, 2020
78954d7
database: Updated column name
realcr Dec 22, 2020
8384c93
funder: Initial impl of collect_outgoing_move_token()
realcr Dec 22, 2020
044eff1
funder: Work on collect_outgoing_move_token()
realcr Dec 23, 2020
4f6106d
funder: Some work on set_friend_online()
realcr Dec 23, 2020
150bdb5
funder: TcStatus::Inconsistent now contains full balances list
realcr Dec 23, 2020
1147b3c
funder: TODO comment
realcr Dec 23, 2020
7c8c6bc
funder: Some comments and thoughts
realcr Dec 23, 2020
9909a98
proto: Remove usage of capnp
realcr Dec 23, 2020
decf4ae
funder now compiles
realcr Dec 23, 2020
9e222f4
proto: Removed unused proto_ser.rs file
realcr Dec 23, 2020
e89bc26
proto: Removed old comments
realcr Dec 23, 2020
3560b7d
README.md: Removed capnp installation info
realcr Dec 23, 2020
e30f8d1
Removed capnp installation from ci
realcr Dec 23, 2020
df66257
funder: Moved structures to offset-proto
realcr Dec 23, 2020
a922b85
funder: Added to set_friend_online() impl
realcr Dec 23, 2020
c1609be
funder: Initial stub for set_friend_offline()
realcr Dec 23, 2020
632e14e
funder: Removed old comment
realcr Dec 23, 2020
f7929e4
funder: CurrenciesOperations updated to be a HashMap
realcr Dec 23, 2020
1252fa2
funder: Added TODO
realcr Dec 23, 2020
333387f
funder: set_friend_online(): Reporting index mutations
realcr Dec 25, 2020
3b014e5
funder: Added missing send_response + send_cancel
realcr Dec 25, 2020
18b9fa7
funder: TODO comments
realcr Dec 25, 2020
161c90b
funder: impl set_friend_offline()
realcr Dec 25, 2020
6d5b322
proto: TODO comment
realcr Dec 26, 2020
ec466cc
funder: comments
realcr Dec 26, 2020
33f6623
Refactored FriendsRoute code into a trait
realcr Dec 26, 2020
bbe6772
funder: is_online() now takes a shared ref
realcr Dec 26, 2020
293640e
funder: impl send_request()
realcr Dec 26, 2020
a6dfb52
funder: send_request(): Cut first two public keys from route
realcr Dec 26, 2020
15b8c02
funder: Added TODO comment
realcr Dec 26, 2020
deeeab8
funder: Initial work on create_index_mutations_from_move_token
realcr Dec 26, 2020
46e7017
funder: create_index_mutations_from_move_token() impl
realcr Dec 26, 2020
3dedf44
funder: send_request(): Create index mutations
realcr Dec 26, 2020
04437ca
funder: TODO comments
realcr Dec 26, 2020
b37f8c7
funder: remote pending request might not always exist
realcr Dec 26, 2020
1c6c412
database: Fixed column name
realcr Dec 28, 2020
245a219
database: Maintaining requests origin, and uniqueness invariants
realcr Dec 28, 2020
0181969
funder: Renamed switch -> router
realcr Dec 29, 2020
0fe60f9
database: 'local_requests' strategy to remember locally created requests
realcr Dec 29, 2020
31f936d
funder: impl send_response()
realcr Dec 29, 2020
90b2557
funder: Refactored send_response() + Added send_cancel()
realcr Dec 29, 2020
4b9436b
funder: add_currency, {set,unset}_remove_currency
realcr Dec 29, 2020
3783d46
funder: Fixed compilation error
realcr Dec 29, 2020
58cb0a2
funder: Added missing function arguments
realcr Dec 29, 2020
88963f2
funder: TODO comments
realcr Dec 29, 2020
1c3603c
funder: set_remote_max_debt() impl
realcr Dec 29, 2020
abf869b
funder: impl open_currency()
realcr Dec 30, 2020
03d5b2a
funder: impl close_currency()
realcr Dec 30, 2020
6f58935
funder: TODO comment
realcr Dec 30, 2020
d47604c
funder: TODO comments
realcr Dec 30, 2020
c25e110
funder: update_local_relays() comments
realcr Dec 30, 2020
0c5e410
proto: TODO comment
realcr Jan 1, 2021
817d5d6
funder: router: Work on update_local_relays()
realcr Jan 1, 2021
aae847f
funder: update_local_relays(): Initial impl
realcr Jan 1, 2021
486d081
proto: Added RelayAddressPort
realcr Jan 1, 2021
1c19f1f
funder: router: Refactored util functions to separate files
realcr Jan 1, 2021
84aaee7
funder: initial incoming_friend_message() skeleton
realcr Jan 1, 2021
79e263d
funder: router: Refactored code into utils submodule
realcr Jan 1, 2021
77716a7
funder: TODO comments
realcr Jan 1, 2021
7bce2ea
funder: Work on incoming_move_token_request()
realcr Jan 1, 2021
d0319ae
funder: router: Work on incoming_move_token_request() impl
realcr Jan 1, 2021
f817c4b
funder: incoming_move_token_request: impl RetransmitOutgoing case
realcr Jan 1, 2021
dc875a2
funder: TODO comment
realcr Jan 1, 2021
21064e2
funder: CurrenciesOperations is now an ordered vector of tuples
realcr Jan 4, 2021
a0bb1e1
funder: Refactored router handlers into separate files
realcr Jan 4, 2021
5517026
funder: Renamed file
realcr Jan 4, 2021
875c7bd
funder: Renamed file
realcr Jan 4, 2021
2b238dc
funder: TODO comment
realcr Jan 4, 2021
feef07e
funder: Work on incoming_move_token_request()
realcr Jan 4, 2021
9570e12
funder: Removed redundant file
realcr Jan 4, 2021
ce6799c
funder: Initial work on incoming_message_request()
realcr Jan 4, 2021
3696f17
funder: Added missing trait bounds
realcr Jan 4, 2021
20002aa
funder: comments
realcr Jan 4, 2021
2203fd9
funder: TcDbClient: Take failure into account in mc_db_client()
realcr Jan 4, 2021
8577045
funder: Removed TODO comment
realcr Jan 4, 2021
6f17d90
funder: RouterDbClient: tc_db_client() can now fail
realcr Jan 4, 2021
5c36acf
funder: impl incoming_message_request()
realcr Jan 4, 2021
def1c1f
funder: Weakened bounds
realcr Jan 4, 2021
29b1d3c
funder: impl incoming_message_request_cancel()
realcr Jan 8, 2021
3ce01ed
funder: Refactor send_request()
realcr Jan 8, 2021
df54ce1
funder: comments
realcr Jan 8, 2021
baef946
funder: Removed unused imports
realcr Jan 8, 2021
d1c1952
funder: Update send_request(): Avoid request duplication and remember…
realcr Jan 8, 2021
cca5424
funder: incoming_message_request: Avoid request_id duplication during…
realcr Jan 8, 2021
cf59e6c
funder: impl incoming_message_{response,cancel}
realcr Jan 9, 2021
b6a22fd
funder: Removed todo statement
realcr Jan 9, 2021
c294109
funder: Added missing remove_local_request() invocations
realcr Jan 9, 2021
a7f9ee7
funder: TODO comments
realcr Jan 9, 2021
b8b4581
funder: router: Refactored liveness code to a separate file
realcr Jan 9, 2021
cbf3137
funder: Updated plan to handle index mutations
realcr Jan 9, 2021
357cfb2
funder: Function rename
realcr Jan 10, 2021
e2fe04a
funder: Comment
realcr Jan 10, 2021
69eaf0d
funder: Added TODO comments
realcr Jan 10, 2021
94dbe8b
funder: Removed unused imports
realcr Jan 10, 2021
1bf5f10
funder: collect_outgoing_move_token() now calculates index mutations
realcr Jan 10, 2021
5d480fa
funder: Refactored collect_outgoing_move_token()
realcr Jan 10, 2021
bcfb9a4
funder: Removed TODO comment
realcr Jan 10, 2021
3f7fce7
funder: get_mentioned_currencies() now returns a Vec.
realcr Jan 10, 2021
3e0642c
funder: Removed redundant comment
realcr Jan 10, 2021
69cd33f
funder: Removed comment
realcr Jan 10, 2021
525f10b
funder: handle_in_move_token_index_mutations()
realcr Jan 10, 2021
00536db
funder: Updated handle_out_move_token... impl
realcr Jan 12, 2021
a946fcc
funder: Work on incoming_move_token_request()
realcr Jan 12, 2021
cbf3093
funder: Moved TODO comment to another function
realcr Jan 12, 2021
40826c4
funder: Work on incoming_move_token_request()
realcr Jan 12, 2021
944f392
Initial redesign for request message
realcr Jan 16, 2021
973ccb1
signature: Hash currency name before appending to signature buffer
realcr Jan 16, 2021
63ec782
proto: Removed old tests
realcr Jan 18, 2021
d14f088
proto: Updated fundamental operations
realcr Jan 18, 2021
3c56b98
proto: Initial MoveToken redesign. Not compiling yet.
realcr Jan 18, 2021
e66a70f
funder: mutual_credit now works with own operation types
realcr Jan 19, 2021
08dbc63
funder: Removed old comments
realcr Jan 19, 2021
2a2e050
funder: Work on porting token_channel to new design. WIP
realcr Jan 19, 2021
1a7e19c
funder: Work on FriendTcOp -> TcOp: WIP
realcr Jan 20, 2021
ae73681
funder: types: Fixed imports
realcr Jan 20, 2021
e8608ae
funder: Mock token_channel functions to compile with new design
realcr Jan 20, 2021
b7a48de
database: Fixed syntax error
realcr Jan 20, 2021
f361af8
database: Updated mutual_credits to include removal markers.
realcr Jan 20, 2021
7ab54f1
funder: token_channel: Work on handle_out_move_token()
realcr Jan 20, 2021
bb1510a
funder: work on handle_out_move_token()
realcr Jan 20, 2021
e4d2dda
funder: Initial work on new currency add/remove design
realcr Jan 22, 2021
112e210
funder: TODO comment
realcr Jan 22, 2021
2ad962c
database: Updated to currencies design
realcr Jan 22, 2021
034846e
database: Unpacked rate column into mul + add integers
realcr Jan 22, 2021
3781bff
funder: comments
realcr Jan 22, 2021
cd59b5a
funder: Some ideas for handle_out_move_token(). WIP
realcr Jan 22, 2021
95b52e3
funder: mutual_credit: Added local_max_debt to queue_request()
realcr Jan 23, 2021
b129d48
funder: queue_response(): Removed redundant argument
realcr Jan 23, 2021
3e9ad93
funder: Work on OutMoveToken. Not done yet.
realcr Jan 23, 2021
5218be1
funder: Some work on OutMoveToken. WIP
realcr Jan 23, 2021
495ced9
funder: Work on OutMoveToken::queue_requets()
realcr Jan 25, 2021
8b1abca
funder: Comments
realcr Jan 25, 2021
20a76cb
funder: Work on OutMoveToken
realcr Jan 25, 2021
aaee3f7
funder: Removed comment
realcr Jan 25, 2021
a530535
funder: Work on handle_incoming_token_match()
realcr Jan 25, 2021
99ac70b
funder: impl handle_incoming_token_match()
realcr Jan 25, 2021
8cb5a66
funder: Return error instead of expect()
realcr Jan 26, 2021
4ee779c
funder: comment
realcr Jan 26, 2021
0ec2900
funder: impl accept_remote_reset()
realcr Jan 26, 2021
8e9abdc
funder: Updated comment
realcr Jan 26, 2021
a2c36dc
funder: Removed redundant comment
realcr Jan 26, 2021
48ce04d
funder: Work on token_channel tests
realcr Jan 26, 2021
0e041e9
funder: Derived Eq for McRequest, McResponse, McCancel
realcr Jan 26, 2021
7e1dafe
funder: Work on token channel move_token_basic test
realcr Jan 26, 2021
b7a7870
funder: token_channel: Restored move_token_basic test
realcr Jan 26, 2021
9484939
funder: Marked test local var as unused
realcr Jan 26, 2021
2b7b44c
funder: mutual_credit: PendingTransaction refactoring
realcr Jan 26, 2021
8c62c42
funder: token_channel: PendingTransaction refactor
realcr Jan 26, 2021
011e9e5
funder: removed redundant comments
realcr Jan 26, 2021
559862a
funder: queue_request(): return Cancel instead of fatal error
realcr Jan 26, 2021
cd22eb7
funder: queue_request(): Cancel instead of unrecoverable error
realcr Jan 26, 2021
38176dd
funder: TODO comments
realcr Jan 26, 2021
a59a523
funder: Removed comment
realcr Jan 26, 2021
dd37cd3
funder: Return unrecoverable error instead of panic
realcr Jan 29, 2021
fcf3bcb
funder: TODO comments
realcr Jan 29, 2021
89b189a
funder: More precise handling of inconsistencies vs unrecoverable errors
realcr Jan 31, 2021
c6133aa
funder: Removed redundant comments
realcr Jan 31, 2021
f49d0c7
funder: Removed old comment
realcr Jan 31, 2021
f236278
funder: token_channel: Cleaned up error types
realcr Jan 31, 2021
83f0c76
funder: Added TODO comment
realcr Jan 31, 2021
471a439
funder: Verify proposed remote reset move token
realcr Feb 3, 2021
100777d
funder: TODO comment
realcr Feb 3, 2021
465d784
funder: Move TcOp to types submodule
realcr Feb 3, 2021
a094d61
funder: mutual_credit: Updated exposed interface
realcr Feb 3, 2021
d053f99
funder: Some work on router. Not done yet
realcr Feb 3, 2021
342b0d9
funder: Updated CurrencyInfo. WIP
realcr Feb 5, 2021
90771e7
funder: impl sketch for queue_request(). WIP
realcr Feb 5, 2021
8352ee7
database: Removed redundant column
realcr Feb 5, 2021
91c4c42
database: Renamed tables
realcr Feb 5, 2021
efa8292
funder: queue_request(): WIP
realcr Feb 5, 2021
9f3e320
database: Comment
realcr Feb 5, 2021
9e8b4bc
proto: Removed old comment
realcr Feb 5, 2021
3e5d5d4
funder: Added TODO comment
realcr Feb 5, 2021
f9b23c0
funder: Initial queue_request() impl. WIP
realcr Feb 5, 2021
fb67fab
funder: Added OutMoveToken::is_empty()
realcr Feb 6, 2021
4b1854f
funder: router: move_token.rs: WIP
realcr Feb 6, 2021
f955333
proto: Added UpdateFriendCurrency.send_capacity
realcr Feb 6, 2021
3074b4d
funder: Some work on router. Not done yet
realcr Feb 6, 2021
29f09a0
funder: router: Work on IndexMutation-s creation
realcr Feb 6, 2021
c441e74
funder: restored move_token submodule. WIP
realcr Feb 6, 2021
b80123b
funder: Removed old comments
realcr Feb 6, 2021
fad80fa
proto: TODO comment
realcr Feb 6, 2021
7806a18
funder: Work on calc_capacities()
realcr Feb 6, 2021
bc14a3c
funder: Removed todo!() statement from calc_capacities()
realcr Feb 6, 2021
24af88d
funder: Restored flush submodule
realcr Feb 8, 2021
0f8f016
funder: handle_liveness submodule now compiles
realcr Feb 8, 2021
6d2652e
funder: Updated create_update_index_mutation -> create_index_mutation
realcr Feb 8, 2021
16ab314
funder: Restored handle_relays submodule
realcr Feb 8, 2021
eb53695
funder: router: Restored handle_config submodule
realcr Feb 8, 2021
94d02c4
funder: Updated backwards_ops queues interface
realcr Feb 8, 2021
c4e9267
funder: router: Some work on restoring handle_friend submodule
realcr Feb 8, 2021
69e29b1
funder: Fixed calls to add_incoming_cancel()
realcr Feb 8, 2021
9e67fdd
funder: Restored handle_friend submodule
realcr Feb 8, 2021
20d64bc
funder: TODO comment
realcr Feb 8, 2021
34e980c
funder: Restored handle_route submodule
realcr Feb 8, 2021
e8bc242
funder: Removed redundant code
realcr Feb 8, 2021
876a140
funder: Removed old comments
realcr Feb 8, 2021
5e599ed
funder: calc_capacities() is now private
realcr Feb 8, 2021
dcb04e6
funder: TODO comment
realcr Feb 8, 2021
eeb9927
funder: impl set_local_max_debt()
realcr Feb 8, 2021
790b392
funder: Added TODO comments for flush_friend()
realcr Feb 8, 2021
33ddbed
funder: Began work on router's handler
realcr Feb 11, 2021
de8d0a8
funder: Updated RouterControl
realcr Feb 11, 2021
81eefe5
funder: Removed redundant struct
realcr Feb 11, 2021
b490af3
funder: router handler: connected handle_config
realcr Feb 11, 2021
64fe46c
funder: router handler: connected handle_friend
realcr Feb 11, 2021
b4c6e77
funder: router handler: connected handle_liveness
realcr Feb 11, 2021
45ade45
funder: Changed RouterControl to be a trait
realcr Feb 12, 2021
63e7604
funder: Converted router to new RouterControl trait design
realcr Feb 12, 2021
d5879ba
funder: router: restored handler
realcr Feb 12, 2021
5cd9182
funder: router: Added Send{Request,Response,Cancel} cases
realcr Feb 12, 2021
05fb9d1
funder: TODO comment
realcr Feb 12, 2021
f3be1c4
funder: router: Refactored utils to use RouterControl trait
realcr Feb 12, 2021
1a45c1e
funder: Updated set/unset remove currency impl
realcr Feb 12, 2021
efd59be
funder: Added SetRemoveCurrency, UnsetRemoveCurrency
realcr Feb 12, 2021
1134c99
funder: Added flush_friends() stub
realcr Feb 12, 2021
9504819
funder: Added SendCommands
realcr Feb 13, 2021
370390a
funder: Updated SendCommands
realcr Feb 13, 2021
84a4f7c
funder: Only send module may send friend message
realcr Feb 13, 2021
d6b1e66
database: Fixed event type character
realcr Feb 13, 2021
e311b83
funder: Initial work on add/remove friend
realcr Feb 13, 2021
b669f49
funder: set_inconsistent() should calculate reset terms
realcr Feb 13, 2021
4b538d4
funder: Commented out pending debt columns
realcr Feb 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ jobs:
# Add clippy and rustfmt:
- rustup update
- rustup component add clippy rustfmt
# Install capnp:
- ci/pre/capnp.sh
# Check formatting:
- cargo fmt --all -- --check
# Run clippy check:
Expand All @@ -69,8 +67,6 @@ jobs:
os: osx
osx_image: xcode11.3
# Solution due to https://travis-ci.community/t/homebrew-syntax-error/5623 :
before_script:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install capnp
script:
- cargo test

Expand All @@ -81,7 +77,6 @@ jobs:
# See: https://travis-ci.community/t/windows-instances-hanging-before-install/250/25
filter_secrets: false
before_script:
- choco install capnproto
- rustup target add x86_64-pc-windows-msvc
script:
- cargo test
Expand Down
Loading