Commit 4903f31
committed
Removing blocksizenotify abomination.
Essentially, we were re-serializing every new connected block tip just to calculate the size and broadcast a notification for external listeners if the block size is above 1mb.
Which well..
(1) the block arrives serialized from the network and it's parsed into a block object by the core, there is no need to re-serialize the entire block..
(2) the complete serialization is just done to notify external listeners if a block exceeds the 1mb block size.. --> which can easily be done from outside of the core without having the most important node processing thread's work notifying nor calculating it, blocking cs_main for its whole time..
Github-Pull: #2284
Rebased-From: 479d0651 parent c865148 commit 4903f31
3 files changed
+0
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
426 | 425 | | |
427 | 426 | | |
428 | 427 | | |
| |||
622 | 621 | | |
623 | 622 | | |
624 | 623 | | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | 624 | | |
636 | 625 | | |
637 | 626 | | |
| |||
1786 | 1775 | | |
1787 | 1776 | | |
1788 | 1777 | | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | 1778 | | |
1793 | 1779 | | |
1794 | 1780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2271 | 2271 | | |
2272 | 2272 | | |
2273 | 2273 | | |
2274 | | - | |
2275 | 2274 | | |
2276 | 2275 | | |
2277 | | - | |
2278 | | - | |
2279 | | - | |
2280 | | - | |
2281 | | - | |
2282 | | - | |
2283 | | - | |
2284 | | - | |
2285 | 2276 | | |
2286 | 2277 | | |
2287 | 2278 | | |
| |||
0 commit comments