hive issueshttps://gitlab.syncad.com/groups/hive/-/issues2021-09-17T05:49:45Zhttps://gitlab.syncad.com/hive/condenser/-/issues/146Merge Condenser and Wallet repos2021-09-17T05:49:45ZQuoc Huy Nguyen DinhMerge Condenser and Wallet reposIn order to maintain just a single repo for both, lets merge the two repos and add a WALLET mode.In order to maintain just a single repo for both, lets merge the two repos and add a WALLET mode.https://gitlab.syncad.com/hive/hive-js/-/issues/24Remove hivekings or replace it2021-09-18T10:22:26ZMahdi YariRemove hivekings or replace ithttps://gitlab.syncad.com/hive/hive-js#rpc-servershttps://gitlab.syncad.com/hive/hive-js#rpc-servershttps://gitlab.syncad.com/hive/hive/-/issues/179Add 'account' to 'find_vesting_delegation_expirations' response2021-09-21T11:39:15ZSergioAdd 'account' to 'find_vesting_delegation_expirations' responseCurrently the account is not included in the response for `database_api.find_vesting_delegation_expirations`. Would be nice to have it.
Current response of the API:
![Screenshot_from_2021-09-21_13-38-38](/uploads/3b084e3b1fe7f5d81d5f2b...Currently the account is not included in the response for `database_api.find_vesting_delegation_expirations`. Would be nice to have it.
Current response of the API:
![Screenshot_from_2021-09-21_13-38-38](/uploads/3b084e3b1fe7f5d81d5f2bc63fb62ea1/Screenshot_from_2021-09-21_13-38-38.png)https://gitlab.syncad.com/hive/condenser/-/issues/147undefined appears in the log for proposals and ~witnesses URLs2021-09-27T10:55:56ZQuoc Huy Nguyen Dinhundefined appears in the log for proposals and ~witnesses URLshttps://gitlab.syncad.com/hive/hive/-/issues/181When executing unit testing, values for some objects (eg vests) are set to a...2021-11-29T20:05:52ZHowoWhen executing unit testing, values for some objects (eg vests) are set to abnormally high valuesBasic example:
```
BOOST_AUTO_TEST_CASE( delegate_rc_operation_apply )
{
try
{
BOOST_TEST_MESSAGE( "Testing: delegate_rc_operation_apply" );
ACTORS( (alice)(bob)(dave) )
vest( HIVE_INIT_MINER_NAME, "alice", ASSET( "10.0...Basic example:
```
BOOST_AUTO_TEST_CASE( delegate_rc_operation_apply )
{
try
{
BOOST_TEST_MESSAGE( "Testing: delegate_rc_operation_apply" );
ACTORS( (alice)(bob)(dave) )
vest( HIVE_INIT_MINER_NAME, "alice", ASSET( "10.000 TESTS" ) );
int64_t alice_vests = alice.vesting_shares.amount.value;
const account_object& bob_account = db->get< account_object, by_name >( "bob" );
idump((bob_account.vesting_shares.amount.value));
}
}
```
outputs:
```
1890625ms direct_rc_delegation.cpp:58 test_method ] bob_account.vesting_shares.amount.value: 98716683119
```
I'm not sure if I'm doing something wrong but I have seen this behavior across multiple objects mostly in relation to numbers.
So far my solution is to manually set those values:
```
db_plugin->debug_update( [=]( database& db )
{
db.modify( db.get_account( "alice" ), [&]( account_object& a )
{
a.vesting_shares = asset( 90, VESTS_SYMBOL );
});
db.modify( db.get_account( "bob" ), [&]( account_object& a )
{
a.vesting_shares = asset( 0, VESTS_SYMBOL );
});
db.modify( db.get_account( "dave" ), [&]( account_object& a )
{
a.vesting_shares = asset( 0, VESTS_SYMBOL );
});
db.modify( db.get< rc_account_object, by_name >( "alice" ), [&]( rc_account_object& rca )
{
rca.max_rc_creation_adjustment.amount.value = 10;
rca.rc_manabar.current_mana = 100;
rca.rc_manabar.last_update_time = db.head_block_time().sec_since_epoch();
rca.last_max_rc = 100;
});
db.modify( db.get< rc_account_object, by_name >( "bob" ), [&]( rc_account_object& rca )
{
rca.max_rc_creation_adjustment.amount.value = 10;
rca.rc_manabar.current_mana = 10;
rca.rc_manabar.last_update_time = db.head_block_time().sec_since_epoch();
rca.max_rc_creation_adjustment.amount.value = 10;
rca.last_max_rc = 10;
});
db.modify( db.get< rc_account_object, by_name >( "dave" ), [&]( rc_account_object& rca )
{
rca.max_rc_creation_adjustment.amount.value = 10;
rca.rc_manabar.current_mana = 10;
rca.rc_manabar.last_update_time = db.head_block_time().sec_since_epoch();
rca.max_rc_creation_adjustment.amount.value = 10;
rca.last_max_rc = 10;
});
});
```https://gitlab.syncad.com/hive/condenser/-/issues/148Review CSP security config2021-09-29T03:21:13ZQuoc Huy Nguyen DinhReview CSP security configSeems like ScriptSrc is being ignoredSeems like ScriptSrc is being ignoredhttps://gitlab.syncad.com/hive/hivemind/-/issues/170Add a notification if a post/comment has beneficiaries to a user2021-09-29T18:47:59ZHowoAdd a notification if a post/comment has beneficiaries to a user`receive notification when someone adds you as benefactor for a post reward? ``receive notification when someone adds you as benefactor for a post reward? `HowoHowohttps://gitlab.syncad.com/hive/haf/-/issues/130App role is not able to create an app schema2023-04-25T15:04:04ZBorislav ZlatanovApp role is not able to create an app schemaAs I understand from the HAF docs, a HAF app is to create its own role that is in the group `hive_applications_group`. Then, all functions are to be created through that role.
I have created the role, but when attempting to create a sc...As I understand from the HAF docs, a HAF app is to create its own role that is in the group `hive_applications_group`. Then, all functions are to be created through that role.
I have created the role, but when attempting to create a schema for the app, it gives `ERROR: permission denied for database haf_block_log`https://gitlab.syncad.com/hive/haf/-/issues/5add SQL linter to CI2021-11-02T10:47:26ZMarcinadd SQL linter to CII would be good to test SQL cod with a linterI would be good to test SQL cod with a linterhttps://gitlab.syncad.com/hive/imagehoster/-/issues/3TypeScript error "has no index signature" starting instance2021-10-28T20:24:18ZShawn LauzonTypeScript error "has no index signature" starting instanceHi, I'm getting a typescript error that I'm having trouble resolving. Specifically I'm getting these errors at startup:
```
TSError: ⨯ Unable to compile TypeScript:
src/upload.ts(85,62): error TS7017: Element implicitly has an 'any' typ...Hi, I'm getting a typescript error that I'm having trouble resolving. Specifically I'm getting these errors at startup:
```
TSError: ⨯ Unable to compile TypeScript:
src/upload.ts(85,62): error TS7017: Element implicitly has an 'any' type because type '{ '/': string; _: string; '+': string; '-': string; '=': string; '.': string; }' has no index signature.
src/upload.ts(155,23): error TS7017: Element implicitly has an 'any' type because type '{ name: string; reputation: number; }' has no index signature.
```
The first one I resolved. The second one I'm having more of a problem with:
```
account[type].account_auths.forEach((key: string[]) => {
```
And the type checker fails because it doesn't understand `account['posting'|'active'|'owner']`.
I have tried the v8, v10, and v12 LTS versions of Node, and none of them work. Is there some requirement I'm not satisfying? Seems odd that only I would be having these problems.
OS: 18.04.5 LTS (GNU/Linux 4.15.0-153-generic x86_64)
Steps to reproduce:
1. Clone repo
2. Enable NVM to use node v10.24.1 (Dubnium LTS)
3. Add this file to `imagehoster/src/types/hivesigner/index.d.ts`:
```declare module 'hivesigner';```
4. Run `make devserver`
5. See errors in console.https://gitlab.syncad.com/hive/hive/-/issues/188Downvote mana depleted upon delegation return2021-10-23T22:49:42ZAcidyoDownvote mana depleted upon delegation returnThe account https://hiveblocks.com/@encrypt3dbr0k3r received his delegation return earlier today, upvoting power and RC were at max as it should be when delegation is returned depending on the amount but downvote mana was possibly at 0%....The account https://hiveblocks.com/@encrypt3dbr0k3r received his delegation return earlier today, upvoting power and RC were at max as it should be when delegation is returned depending on the amount but downvote mana was possibly at 0%. He initiated a smaller powerdown but even attempting to delegate the rest of HP that wasn't powered down (2 million) it wasn't allowing him to most likely due to downvote mana being depleted.
I'm not sure but I think this wasn't occurring before the previous hardfork, but it practically makes the wait time to receive your delegation after 5 days longer if you attempt to direct it somewhere else or start a full powerdown by having to possibly wait another 7 days for your downvote mana to reach 100%.
Downvotes weren't used by this particular account, can't confirm if downvote mana was somewhat depleted from the account the delegation was withdrawn from but that should still not affect it once it's returned.https://gitlab.syncad.com/hive/hivemind/-/issues/173Recover a lost community owner account.2021-10-28T14:33:08ZPablo GarciaRecover a lost community owner account.They authority keys of a "popular" hivemind community owner account can be lost.
Without this account it is NOT possible to update the settings of a community, set new roles, etc.
To solve this it shall be allow to some community membe...They authority keys of a "popular" hivemind community owner account can be lost.
Without this account it is NOT possible to update the settings of a community, set new roles, etc.
To solve this it shall be allow to some community members/roles - such as admins - to change the owner account of a community if some criteria is fullfilled:(a) Period of inactivity of the owner account (b) 75% of community admins agree on the update, etc.HowoHowohttps://gitlab.syncad.com/hive/hivemind/-/issues/174Prepare regression test tools to verify dedicated scenarios executed on hivem...2021-11-04T15:16:35ZBartek WronaPrepare regression test tools to verify dedicated scenarios executed on hivemind instanceCreated micro-framework should allow to:
- setup a hived testnet node and supply it using some dedicated operations to setup testing environment
- supply hived node operating at live-sync with operations specific to tested scenario (as s...Created micro-framework should allow to:
- setup a hived testnet node and supply it using some dedicated operations to setup testing environment
- supply hived node operating at live-sync with operations specific to tested scenario (as separate step due to possible way to freeze/resume node from previous point at given state)
- start `hive sync` process using configured node
- start `hive server` process and verify hivemind data using dedicated set of API testcases.
Micro framework should be useful for different testing scenarios (containing different set of input operations and API tests)Piotr BatkoPiotr Batkohttps://gitlab.syncad.com/hive/hive-js/-/issues/25How to restart a stream2021-11-08T18:11:00ZLoreto ParisiHow to restart a streamIn my hive client I would like to restart the stream when end is reached:
```
client.blockchain.getBlockStream({ mode: dhive.BlockchainMode.Latest })
.on('data', handleBlock)
.on('error', errorBlo...In my hive client I would like to restart the stream when end is reached:
```
client.blockchain.getBlockStream({ mode: dhive.BlockchainMode.Latest })
.on('data', handleBlock)
.on('error', errorBlock)
.on('end', () => {
console.log('Reached end of stream')
// restart stream here?
});
```
Is there any specific api for this?https://gitlab.syncad.com/hive/hive/-/issues/198We need more intel about what's going on with blocks / transactions / operati...2021-11-16T13:36:42ZGandalfWe need more intel about what's going on with blocks / transactions / operations / mempoolThat would help with getting a better view on situations like this:
```
2021-11-15T14:45:20.680239 block_producer.cpp:178 apply_pending_transa ] Postponed 206 transactions due to block size limit
2021-11-15T14:45:20.735940 p2p_plu...That would help with getting a better view on situations like this:
```
2021-11-15T14:45:20.680239 block_producer.cpp:178 apply_pending_transa ] Postponed 206 transactions due to block size limit
2021-11-15T14:45:20.735940 p2p_plugin.cpp:704 broadcast_block ] Broadcasting block #59199619
2021-11-15T14:45:20.737028 witness_plugin.cpp:344 block_production_loo ] Generated block #59199619 with timestamp 2021-11-15T14:45:21 at time 2021-11-15T14:45:21
```
Currently in "live sync" we see informations like this:
```
2021-11-16T12:56:06.013 p2p_plugin.cpp:187 handle_block ] Got 200 transactions on block 59226170 by gtg -- Block Time Offset: 13 ms
```
Would be great to have a better info on:
- number of transactions
- number of operations
- size of block in bytes
- with some extra switch even more data on mempool
also `--set-benchmark-interval` could be extended to provide statistical information on data processed within given interval:
- avg block size
- max block size
- number of transactions
- number of operations
Some of that info we have because of periodic RocksDB reports (if `account_history_rocksdb` plugin is enabled), some are logged during `hive sync`, still having that available at seed nodes could help with ad-hoc State-of-Hive analysis.https://gitlab.syncad.com/hive/hive/-/issues/199Ability to log rejected transactions2021-11-16T13:36:41ZGandalfAbility to log rejected transactionsSomewhat related to #198 as it increases amount of information we have about Hive at hand (without putting a lot of effort each time to debug stuff)
Transactions might be valid and rejected for some reason and we would like to know that ...Somewhat related to #198 as it increases amount of information we have about Hive at hand (without putting a lot of effort each time to debug stuff)
Transactions might be valid and rejected for some reason and we would like to know that this happened and why.
It might reach the node while being already expired, or it might not have enough RC until it expire (behavior that might change with #197),
or not enough free space in blocks (postponed) until it expire.https://gitlab.syncad.com/hive/haf/-/issues/12hive.app_remove_context failed when application tables are removed2021-11-17T09:15:06ZMarcinhive.app_remove_context failed when application tables are removedThe command 'hive.app_remove_context' shall remove context even when the tables registered for the context have been already removed.The command 'hive.app_remove_context' shall remove context even when the tables registered for the context have been already removed.https://gitlab.syncad.com/hive/hive-io/-/issues/15Support new Node:LTS image? (upgrading from 14 to 16)2021-11-18T22:16:10Zroeland lanpartySupport new Node:LTS image? (upgrading from 14 to 16)Per 26 OCT 2021 new Node:Lts became Active LTS: node:16
This is causing build fails in the CI pipeline because package mismatches.
Therefor as a fix I rolled back the CI config file to `image: node:14` (it was: `node:lts`)
Node:14 ha...Per 26 OCT 2021 new Node:Lts became Active LTS: node:16
This is causing build fails in the CI pipeline because package mismatches.
Therefor as a fix I rolled back the CI config file to `image: node:14` (it was: `node:lts`)
Node:14 has EOL April 2023 so there is some time.
- Gitlab CI integrity: https://dev.to/drakulavich/gitlab-ci-cache-and-artifacts-explained-by-example-2opi
- Node release schedule: https://nodejs.org/en/about/releases/
- Rollback: https://gitlab.syncad.com/hive/hive-io/-/merge_requests/113/diffs?commit_id=9bb174bdef9034ea1fae26518594aec62bf660b6https://gitlab.syncad.com/hive/haf/-/issues/15Create regression tests covering application specific data rollback done duri...2021-11-22T11:13:47ZBartek WronaCreate regression tests covering application specific data rollback done during returning from forkGiven simple application should be able to verify (i.e. using some constraint) data uniqueness to show problem when data were not reverted correctly.Given simple application should be able to verify (i.e. using some constraint) data uniqueness to show problem when data were not reverted correctly.Marcin SobczykMarcin Sobczykhttps://gitlab.syncad.com/hive/HAfAH/-/issues/6Test hafah server performance with jmeter on standard HDD, single nvme, 3x nv...2022-01-11T16:13:35ZDan NotesteinTest hafah server performance with jmeter on standard HDD, single nvme, 3x nvme, and 4x nvmeAttach benchmark results to this issue.
### Key to interpret benchmark filenames:
* RDB = rocksdb account history plugin (hived plugin)
* SQL = HAF account history app
* LIGHT = benchmarks only api calls to smaller blocks
* HEAVY = ben...Attach benchmark results to this issue.
### Key to interpret benchmark filenames:
* RDB = rocksdb account history plugin (hived plugin)
* SQL = HAF account history app
* LIGHT = benchmarks only api calls to smaller blocks
* HEAVY = benchmarks api calls to big blocks that are slower to retrieve
* 4nvme = test system configured with 4xnvme Samsung 980 PRO 2TB
* 3nvme = test system configured with 3xnvme Force MP600 2TB
* nvme = ??
* hdd = ??
* Last part of filename is time to complete benchmark
### Benchmark results
* rocksdb account history plugin on s6[RDB_HEAVY_4nvme_83m.28s.csv](/uploads/763f6c6af9c0e707342765a4f6e7d7fe/RDB_HEAVY_4nvme_83m.28s.csv)
* account history app on s6[SQL_HEAVY_4nvme_3m.48s.csv](/uploads/88f0f2af53cb128005c56b10c58c171e/SQL_HEAVY_4nvme_3m.48s.csv)
* account history app on s7[SQL_HEAVY_3nvme_10m.48s.csv](/uploads/cf0c0e2419cd8d1e6b53ce3799696633/SQL_HEAVY_3nvme_10m.48s.csv)
* account history app on s7[SQL_LIGHT_3nvme_09m.15s.csv](/uploads/31833007d55206de03fd4759a641e28b/SQL_LIGHT_3nvme_09m.15s.csv)Krzysztof Mochockikmochocki@syncad.comKrzysztof Mochockikmochocki@syncad.com