37 Commits

Author SHA1 Message Date
Andrea Maria Piana
d6b27d3843 Set SendEpoch instead of cumulating it (#86)
`CalculateNextEpoch` should set `SendEpoch` instead of cumulating it.
2020-11-24 13:40:13 +01:00
Dean Eigenmann
748b61123f feature/mdf (#76)
* protobuf

* do not send ack when not required

* remove from state if no ack required

* different send modes

* fix

* updated

* retransmit fix

* updated

* fixed

* renamed to ephemeral

* repeated

* gen

* resolution

* cleanup

* rough dependency code

* todo

* removed

* only stores if ephemeral

* started implementing the algo

* simplified

* updated

* we never store ephemeral messages so we did not need

* adds parents

* new schema

* tx to insert

* err

* removed old

* fixed

* changed log

* test persistence of parents

* removed

* rename

* ignoring

* Update store/messagestore_sqlite.go

Co-Authored-By: Adam Babik <adam@status.im>

* Update node/node.go

Co-Authored-By: Adam Babik <adam@status.im>

* Update node/node.go

Co-Authored-By: Adam Babik <adam@status.im>

* Update node/node.go

Co-Authored-By: Adam Babik <adam@status.im>

* more fixes

* Update store/messagestore_sqlite.go

Co-Authored-By: Adam Babik <adam@status.im>

* more fixes

* using refs

* Update node/node.go

Co-Authored-By: Adam Babik <adam@status.im>

* finished

* Update store/messagestore_sqlite.go

Co-Authored-By: Adam Babik <adam@status.im>

* Update 1572372377_initial_schema.down.sql

* desc + refactor

* started refactoring resolution

* Update README.md

* rewrote resolve

* mutex

* todo

* fixes

* sql impl

* added test

* log

* updates

* updated

* little bug

* fix

* added test

* first changes from @adambabik

* moved

* fixed test, started eventual ones

* fixed eventually test

* mock install

* consistent test

* mock

* fix lint

* Update dependency/tracker_sqlite.go

Co-Authored-By: Adam Babik <adam@status.im>

* fix
2019-11-05 17:32:23 +01:00
Dean Eigenmann
9f50ecac54 rename/dummy-memory (#82)
* renames dummy to memory

* unexported
2019-11-02 15:52:39 +01:00
Dean Eigenmann
945a249144 enhancement/remove-double-check (#79) 2019-10-29 22:20:14 +01:00
Andrea Maria Piana
87839f9f3a Don't retun error on removing state when receiving messages
When receiving messages the state for the message is removed.
If no state is found an error was thrown.
This should not cause an error as that's an ok scenario.
Also changes the parsing of the flags from init to a custom method, as I
bumped in this issue https://github.com/golang/go/issues/31859
2019-10-07 12:35:15 +02:00
Andrea Maria Piana
943ab5e228 add zap logger (#71) 2019-08-29 08:10:45 +02:00
Andrea Maria Piana
afd2e97e38 Add sync state when initializing node (#69) 2019-08-21 12:38:49 +02:00
Adam Babik
7c42852bfd Add persistent storage support (#68) 2019-08-20 20:06:35 +02:00
Dean Eigenmann
48a12fa637 feature/subscribe (#62)
* readded suubscription code

* added tes

* changed the way channels are created

* closes channel on stop
2019-08-06 11:18:46 +02:00
Dean Eigenmann
6291da6ee1 Update node.go 2019-08-05 21:55:50 +02:00
Andrea Maria Piana
9e1addbac0 Don't rely on the presence of GroupID for non-Messages types
This commits changes the behavior so that we don't rely on the presence
of GroupID in the payload.

Adds some tests to verify the basic functionalities of BATCH and
INTERACTIVE mode, but more are required to ensure the correct
functioning.

Error handling and state management is probably also to be inspected
more carefully.
2019-07-25 12:42:46 +02:00
decanus
b8e366e4e6 updated import path 2019-07-18 16:43:27 -05:00
decanus
ec87e4ab5e docs 2019-07-16 01:07:10 +02:00
Dean Eigenmann
b48d92297c enhancement/subscription (#60) 2019-07-15 05:35:59 +02:00
Dean Eigenmann
27db1bb2c6 feature/subscription (#59) 2019-07-15 05:32:51 +02:00
Dean Eigenmann
55cc8fe0f5 enhancement/message-request (#57) 2019-07-13 23:18:00 -04:00
Dean Eigenmann
ea60666c93 enhancement/id (#55) 2019-07-12 12:20:30 -04:00
Dean Eigenmann
e4cf1efc41 enhancement/protobuf (#53)
* cleans up protocol buffer

* no need to check length explicitly

* Update node.go
2019-06-21 15:37:34 +02:00
decanus
1762929e74 updated 2019-06-21 00:10:39 +02:00
decanus
d2ae4d1213 renamed MessageType to RecordType 2019-06-20 23:03:06 +02:00
Dean Eigenmann
6ca5ee41c9 enhancement/message-retransmission (#51)
* working on message retransmission

* renamed

* remove add

* cleaned up

* minor cleanup
2019-06-18 15:51:38 -04:00
Dean Eigenmann
61a94cab47 enhancement/request-retransmission (#29)
* todo

* minor changes

* seemingly fixes race
2019-06-15 16:42:54 -04:00
Dean Eigenmann
4046fbed44 enhancement/node-stopping (#46)
* made node stoppable

* updated

* added todo

* comments

* remove/ecsda (#50)
2019-06-14 09:49:56 -04:00
decanus
cc9cdfaab8 godoc 2019-06-13 13:54:31 -04:00
decanus
0971998d68 comment 2019-06-13 13:39:03 -04:00
decanus
a584a9e09a comments 2019-06-13 13:35:59 -04:00
decanus
665a6dbec3 fixes 2019-06-13 13:26:19 -04:00
decanus
e3549df1e9 checking error 2019-06-13 13:08:38 -04:00
decanus
8b32b2c5b1 updated Mode to be an enum 2019-06-13 10:20:48 -04:00
Oskar Thorén
2208710dd5 Merge pull request #36 from status-im/enhancement/share-messages
enhancement/share-messages
2019-06-13 12:43:25 +08:00
Dean Eigenmann
32de4b9b65 enhancement/epoch-constructor (#44) 2019-06-11 20:50:14 -07:00
decanus
65e751d525 Merge branch 'master' of github.com:status-im/mvds 2019-06-11 14:20:57 -04:00
Dean Eigenmann
ba1d32790e enhancement/epoch-in-map (#49)
* updated

* fix
2019-06-11 11:20:10 -07:00
decanus
c69b9747f4 comment 2019-06-10 21:38:38 -07:00
decanus
731eed82fd definite bug 2019-06-10 12:52:32 -07:00
decanus
cceaa90ab2 merged 2019-06-10 12:19:02 -07:00
decanus
b7e89839d1 package cleanup 2019-06-10 12:13:37 -07:00