Tests that an empty state is not scheduled for syncing.
(t *testing.T)
| 123 | |
| 124 | // Tests that an empty state is not scheduled for syncing. |
| 125 | func TestEmptyStateSync(t *testing.T) { |
| 126 | empty := common.HexToHash("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421") |
| 127 | if req := NewStateSync(empty, database.NewMemDatabase()).Missing(1); len(req) != 0 { |
| 128 | t.Errorf("content requested for empty state: %v", req) |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // Tests that given a root hash, a state can sync iteratively on a single thread, |
| 133 | // requesting retrieval tasks and returning all of them in one go. |
nothing calls this directly
no test coverage detected