43 Commits
Author SHA1 Message Date
Igor Sirotin 7226facd5a fix: graceful shutdown (#11)
* chore: minor logs cleanup

* fix: graceful shutdown

* chore: ignore ds store
2025-12-19 20:10:02 +00:00
Igor Sirotin c1862fda82 Merge pull request #10 from status-im/fix/named-logger
fix: properly named logger, remove trace log
2025-12-18 13:10:06 +00:00
Patryk Osmaczko 7bdc695d49 chore!: decouple persistence from SQL
Allow clients to inject custom persistence implementations, removing
strict SQL database dependency.
2025-10-22 14:01:25 +02:00
kaichaosun 9b0636983a chore: lower the max send count after increase interval 2024-10-08 14:59:54 +08:00
kaichaosun c9e0d6ed0a feat: clear state that are old enough 2024-07-25 13:33:57 +08:00
kaichaosun 2b8f1bacb9 chore: limit the max batch messages for reset epoch 2024-06-21 11:03:21 +08:00
kaichaosun 7d3d2e694d feat: reset epoch when peer comes online. 2024-06-18 14:52:29 +08:00
Andrea Maria Piana 92d364e4be Use pointer for payload to avoid copylocks 2024-01-11 14:44:48 +00:00
Andrea Maria PianaandJakub 888e55726c Add shell.nix
Co-authored-by: Jakub <i+github@always.fail>
2024-01-11 10:25:25 +00:00
Andrea Maria Piana 26d8e94130 Set SendEpoch instead of cumulating it
`CalculateNextEpoch` should set `SendEpoch` instead of cumulating it.
2020-11-24 07:01:06 +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