File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ struct __attribute__((packed)) fd_bmtree_node {
151
151
};
152
152
typedef struct fd_bmtree_node fd_bmtree_node_t ;
153
153
154
+ FD_STATIC_ASSERT ( sizeof (fd_bmtree_node_t ) == 32 , update FD_SHRED_MERKLE_ROOT_SZ );
155
+
154
156
/* bmtree_hash_leaf computes `SHA-256(prefix|data), where prefix is the
155
157
first prefix_sz bytes of fd_bmtree_leaf_prefix. prefix_sz is
156
158
typically FD_BMTREE_LONG_PREFIX_SZ or FD_BMTREE_SHORT_PREFIX_SZ.
Original file line number Diff line number Diff line change @@ -753,6 +753,8 @@ net_rx_packet( fd_net_ctx_t * ctx,
753
753
} else if ( FD_UNLIKELY ( udp_dstport == ctx -> repair_intake_listen_port ) ) {
754
754
proto = DST_PROTO_REPAIR ;
755
755
out = ctx -> repair_out ;
756
+ // if( FD_UNLIKELY( sz == REPAIR_PING_SZ ) ) out = ctx->repair_out; /* ping-pong */
757
+ // else out = ctx->shred_out;
756
758
} else if ( FD_UNLIKELY ( udp_dstport == ctx -> repair_serve_listen_port ) ) {
757
759
proto = DST_PROTO_REPAIR ;
758
760
out = ctx -> repair_out ;
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ struct fd_fec_intra {
66
66
ulong prev ; /* internal use by dlist */
67
67
ulong next ; /* internal use by map_chain */
68
68
69
- ulong slot ; /* slot of the block this fec set is part of */
70
- ushort parent_off ;
69
+ ulong slot ; /* slot of the block this fec set is part of */
70
+ ushort parent_off ; /* parent slot's offset from slot */
71
71
uint fec_set_idx ; /* index of the first data shred */
72
72
long ts ; /* timestamp upon receiving the first shred */
73
73
ulong recv_cnt ; /* count of shreds received so far data + coding */
You can’t perform that action at this time.
0 commit comments