Commit Graph

2228 Commits

Author SHA1 Message Date
Eric Frias 3b0b637b54 Create a separate directory/environment variable pair to allow
bind-mounting the WAL directory to a location other than the blockchain
directory


(cherry picked from commit e988b4e0d2)
2024-03-27 08:14:20 +00:00
asuch 184787ba50 Update poetry.lock 2024-03-26 11:35:33 +01:00
asuch 486347fdf5 Update hive submodule 2024-03-26 10:54:47 +01:00
“Mariusz Trela” 8ae3ede351 Remove `shell_5m_test` test in favor of `replay_with_keyauths` test 2024-03-22 12:37:18 +01:00
Michal Zander 05429db999 Change CALL to PERFORM 2024-03-22 12:37:18 +01:00
“Mariusz Trela” 73ef376878 Change name `hive.appproc_context_detach` -> `hive.app_context_detach` 2024-03-22 12:37:18 +01:00
Michal Zander 5048d09c38 Fix jesus2 2024-03-22 12:37:18 +01:00
Michal Zander fc8371a05c Add keyauth test for all accounts in 5m blocks 2024-03-22 12:37:18 +01:00
mkrzeminski 73f773aa00 Keyauth: remove debug code 2024-03-22 12:37:18 +01:00
mkrzeminski 3591aaa73a Keyauth: Cope with deletion of the file by synthesizing it on the fly in pow only path 2024-03-22 12:37:18 +01:00
mkrzeminski 07ed142bce Keyauth: Revert restoring the hive.account_view.block_num field and remove reference to it 2024-03-22 12:37:18 +01:00
mkrzeminski c707721c06 Keyauth: Cope with deletion of hive.account_view.block_num by restoring the field
mostly revert of:
commit 57d86cfd41
Date:   Tue Dec 19 10:57:25 2023 +0100
    remove block_num from accounts views
2024-03-22 12:37:18 +01:00
mkrzeminski f6080c085e Keyauth: Make test independent on op_serial_id 2024-03-22 12:37:18 +01:00
mkrzeminski f6de7c6b00 Keyauth: Fix shell test for: prepare_haf data prepares 5000001 blocks 2024-03-22 12:37:18 +01:00
mkrzeminski badf96458c Keyauth: Refactor 2024-03-22 12:37:18 +01:00
mkrzeminski afea349adc Keyauth: Switch to C++ implementation of hf9 2024-03-22 12:37:18 +01:00
mkrzeminski 930f3d315f Keyauth: Move genesis in update state provider 2024-03-22 12:37:18 +01:00
mkrzeminski 5239d690ea Keyauth: Genesis in start provider 2024-03-22 12:37:18 +01:00
mkrzeminski 12e4ac0e66 Keyauth: hardfork 9 SQL implementation working 2024-03-22 12:37:18 +01:00
mkrzeminski df1ddda981 Keyauth: supercomputing96 working 2024-03-22 12:37:18 +01:00
mkrzeminski ef13823916 Small fix in dump_account() + some comments 2024-03-22 12:37:02 +01:00
mkrzeminski 96a5348199 Keyauth: Handle pow operation separately 2024-03-20 22:53:22 +01:00
mkrzeminski d94271b2c4 Keyauth: Switch to new implementation 2024-03-20 22:53:22 +01:00
mkrzeminski 71e4074cca Keyauth: Add check to test if database ok before test 2024-03-20 22:53:22 +01:00
mkrzeminski 8577872ccd Keyauth: Add support for witness_update operation 2024-03-20 22:53:22 +01:00
mkrzeminski cb6a4e0b12 Keyauth: Extract methods refactoring in hive, align string in test 2024-03-20 22:53:22 +01:00
mkrzeminski f84c037f2d Keyauth: Add pow2_operation support 2024-03-20 22:53:22 +01:00
Bartek Wrona 91cac0ddc7 Keyauth: Critical fix related to authority collection. 2024-03-20 22:53:22 +01:00
mkrzeminski 68843c4b4a Keyauth: fix satisfying 5m replay 2024-03-20 22:53:22 +01:00
Eric Frias bf97829852 Update hive submodule to get new build_and_publish_image script 2024-03-15 21:32:55 +00:00
Konrad Botor 4e9bfea03e
Updated Hive submodule to include latest publishing script changes 2024-03-15 10:33:51 +01:00
Bartek Wrona 7bc50f5773 Updated hived submodule to get build_and_publish_image.sh script fixes. 2024-03-15 01:45:57 +01:00
“Mariusz Trela” af7101337e Issue #126 - Add tests that use `op_body_filter` tool on CI 2024-03-14 09:07:55 +01:00
Radek Masłowski 624c0873a0 Update helpy 2024-03-13 22:14:41 +00:00
Radek Masłowski d951c1e2f4 Update hive 2024-03-13 22:14:41 +00:00
Radek Masłowski 1a8f2e9692 Refactor time_offset argument in mirrornet tests 2024-03-13 22:14:41 +00:00
Marcin Ickiewicz 3c926a8295 update context fork id when processing irreversible range
Processing back_from_fork event change context's current block num,
it was not a problem when an application process events before
reaching fork event, because block num was updated during servicing each
event. The problem is when some events before fork event  were removed
and the application is moving on irreversible blocks, in such situation
servicing fork event will change current blocknum regardles on which
irreversible block context is. Separated from fork processing update
contexts fork id was added.
2024-03-13 12:16:10 +01:00
Marcin Ickiewicz 037bdb7da8 fix for possible problem with searching event
During searching a next event to process by an application
there is a need to limit range of possible events id to max. event id
from the moment when searching was started, othweriwse there
may inconistency occure when sql-serializer will commit new events when
searching is in progress.
2024-03-11 14:25:44 +00:00
Marcin Ickiewicz ecd0f81d3f fix for wrongly ommiting FORK EVENT
When hived is stopped and then started to continue syncing blocks, then
it adds artificial BACK_FROM_FORK events, which forces applications
to clean up reversible data collected just before stoping the hived.
Attached applications which are traversing range of irreversible blocks
ommited fork events, because they have only irreversible data, but
servicing of fork event not only reverts reversible data, but also
change contexts fork_id, and in consequences when the applications
reached first new reversible block, then their views did not see it
because contexts have old fork_id.
2024-03-11 14:25:44 +00:00
Marcin Ickiewicz c222ceaaf7 forking apps without registered tables see reveresible data
Context views modification missed when fixed issue #148
2024-03-11 14:25:44 +00:00
Lucius 524b98510b Modified entrypoint script to fix hived exit status reporting 2024-03-08 21:02:19 +00:00
Marcin Ickiewicz 95ab8cdeec test p2p mirrornet: wait for block instead of assert if it exists
Because sometimes WAL has latency with dumping blocks to databse,
it is better to wait for a  block presents instead of expecting it immediatly
after enter to live sync
2024-03-08 20:04:43 +00:00
Konrad Botor ebe02706ca Updated publishing script to publish Docker image to registry.hive.blog 2024-03-06 19:12:20 +00:00
Marcin Ickiewicz 5d9823f4fb reduce number of last_active_at updates 2024-03-06 17:35:58 +00:00
Marcin Ickiewicz 11db29853c logs about contexts attach/detach 2024-03-06 17:35:58 +00:00
Marcin Ickiewicz 80b43d483b do not detach apps when HAF stuck
Sometimes happens that HAF stucks for a long time (i.e. for some reason
indexes are rebuilt), is such situations innocent applications were
auto-detached because during waiting for new blocks 'last_active_at' was
not updated.
2024-03-06 17:35:58 +00:00
Marcin Ickiewicz a3b27a299f auto detach do not modify current block
Previously, auto-detach would modify the current block number
upon detaching a context. This resulted in a scenario where,
after an application restart and reattachment, the same block
was processed twice.
2024-03-06 13:26:54 +01:00
Eric Frias f7b2cf8709 Change default logging config to append to the existing log instead
of truncating the old log at startup
2024-03-04 17:01:29 +00:00
Marcin Ickiewicz 28d3834f90 add test to check if HAF can continue replay after break 2024-02-29 19:29:50 +00:00
Marcin Ickiewicz 8c114b101a live test: use known workaround for problem with delayed insertion of transaction
based on commit: 921387c8c0
2024-02-29 13:37:17 +00:00