mirror of
https://github.com/status-im/status-go.git
synced 2025-01-17 02:02:36 +00:00
e65760ca85
This commit adds basic syncing capabilities with peers if they are both online. It updates the work done on MVDS, but I decided to create the code in status-go instead, since it's very tight to the application (similarly the code that was the inspiration for mvds, bramble, is all tight together at the database level). I reused parts of the protobufs. The flow is: 1) An OFFER message is sent periodically with a bunch of message-ids and group-ids. 2) Anyone can REQUEST some of those messages if not present in their database. 3) The peer will then send over those messages. It's disabled by default, but I am planning to add a way to set up the flags.
14 lines
438 B
C
14 lines
438 B
C
#define LDSO_ARCH "s390x"
|
|
|
|
#define REL_SYMBOLIC R_390_64
|
|
#define REL_GOT R_390_GLOB_DAT
|
|
#define REL_PLT R_390_JMP_SLOT
|
|
#define REL_RELATIVE R_390_RELATIVE
|
|
#define REL_COPY R_390_COPY
|
|
#define REL_DTPMOD R_390_TLS_DTPMOD
|
|
#define REL_DTPOFF R_390_TLS_DTPOFF
|
|
#define REL_TPOFF R_390_TLS_TPOFF
|
|
|
|
#define CRTJMP(pc,sp) __asm__ __volatile__( \
|
|
"lgr %%r15,%1; br %0" : : "r"(pc), "r"(sp) : "memory" )
|