store complete transactions

only complete ScvTx should be put into MapDB otherwise later property
updates might get lost. Since they might not end in the order they start
an additional redirection is need to insert with ascending keys
This commit is contained in:
eyck committed 2021-01-12 07:16:42 +01:00
1 parent ec9eb17ee3
commit ba6446378a
3 files changed
+29 -18

No files matched your search

@@ -120,5 +120,15 @@ public class DatabaseServicesTest {
assertEquals(1, waveformDb.getChildNodes().size());
}
@Test
public void testLargeTxText() throws Exception {
File f = new File("inputs/hw_config_10_10.txlog").getAbsoluteFile();
assertTrue(f.exists());
waveformDb.load(f);
assertNotNull(waveformDb);
List<IWaveform> waveforms = waveformDb.getAllWaves();
assertEquals(100, waveforms.size());
assertEquals(1, waveformDb.getChildNodes().size());
}
}