One of the rule for the transaction replacement (RBF) is that the number of original transactions (directly conflicting transactions + their descendants) can't exceed 100. However, in presence of overlapping transactions, "wrong counting" of transactions may occur.
For example, consider situation where transactions A, B and C are ancestors of transaction D. If replacement transaction R replaces A, B and C, then, according to the rule/condition above, they count as 6 and not as 4.
A B C
\ | /
\ | /
D
What interests me is how transactions are calculated in the following example. In the example, A and B are ancestors of C, but A is also an ancestor of B. If R replaces A and B, how is the number of transactions calculated in this case?
A
/ |
B |
\ |
C
I would say the number of transactions is 6.
I came to that conclusion (number) in the following way:
1. start from A; count A (1)
1.1. from A go to B; count B (2)
1.1.1 from B go to C; count C (3)
1.2. from A go to C; count C (4)
2. start from B; count B (5)
2.1. from B go to C; count C (6)
Am I right?
Thanks!