near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.33k stars 632 forks source link

test: resharding V3 and delayed receipts #12476

Closed Trisfald closed 3 days ago

Trisfald commented 3 days ago

Adding a basic test-loop test for resharding v3 and delayed receipts splitting.

During the test I'm burning more gas than the chain capacity at every block height before resharding and one block after. Thus, in the resharding block height there are delayed receipts to be split. A couple of blocks later I verify the transaction outcomes.

The test passes if the target account is not in the parent shard. It fails if the account belongs to either future child.