-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes done in 'origin/develop' specific to v1.27.0 release
- Loading branch information
Showing
261 changed files
with
822 additions
and
2,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#ifndef HIVE_HARDFORK_1_27 | ||
#define HIVE_HARDFORK_1_27 27 | ||
#define HIVE_SMT_HARDFORK HIVE_HARDFORK_1_27 | ||
|
||
#define HIVE_HARDFORK_1_27_TIME 1654084800 // Wednesday, 1 June 2022 12:00:00 | ||
long next_hf_time(); | ||
#define HIVE_HARDFORK_1_27_TIME next_hf_time() | ||
|
||
#define HIVE_HARDFORK_1_27_VERSION hive::protocol::hardfork_version( 1, 27 ) | ||
|
||
// fix scheduling of timeshare witnesses to restore pre-hf26 behavior | ||
#define HIVE_HARDFORK_1_27_FIX_TIMESHARE_WITNESS_SCHEDULING (HIVE_HARDFORK_1_27) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef HIVE_HARDFORK_1_28 | ||
#define HIVE_HARDFORK_1_28 28 | ||
#define HIVE_SMT_HARDFORK HIVE_HARDFORK_1_28 | ||
|
||
#define HIVE_HARDFORK_1_28_TIME 1654084800 // Wednesday, 1 June 2022 12:00:00 | ||
|
||
#define HIVE_HARDFORK_1_28_VERSION hive::protocol::hardfork_version( 1, 28 ) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import pytest | ||
|
||
pytest.register_assert_rewrite("tests.api_tests.message_format_tests.cli_wallet_tests.output_formatter_tests.local_tools") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/api_tests/message_format_tests/condenser_api_tests/test_get_account_history.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/api_tests/message_format_tests/condenser_api_tests/test_get_active_votes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import test_tools as tt | ||
|
||
from ..local_tools import create_account_and_fund_it, run_for | ||
from ..local_tools import run_for | ||
|
||
|
||
@run_for('testnet', 'mainnet_5m', 'mainnet_64m') | ||
def test_get_active_votes(prepared_node, should_prepare): | ||
if should_prepare: | ||
wallet = tt.Wallet(attach_to=prepared_node) | ||
create_account_and_fund_it(wallet, 'acidyo', tests=tt.Asset.Test(100), vests=tt.Asset.Test(100)) | ||
wallet.create_account('acidyo', hives=tt.Asset.Test(100), vests=tt.Asset.Test(100)) | ||
wallet.api.post_comment('acidyo', 'drew-an-avatar-signature-for-my-posts', '', 'test-parent-permlink', 'test-title', 'test-body', '{}') | ||
wallet.api.vote('initminer', 'acidyo', 'drew-an-avatar-signature-for-my-posts', 100, broadcast=True) | ||
prepared_node.api.condenser.get_active_votes('acidyo', 'drew-an-avatar-signature-for-my-posts') |
4 changes: 2 additions & 2 deletions
4
tests/api_tests/message_format_tests/condenser_api_tests/test_get_conversion_request.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import test_tools as tt | ||
|
||
from ..local_tools import create_account_and_fund_it, run_for | ||
from ..local_tools import run_for | ||
|
||
|
||
@run_for('testnet', 'mainnet_5m', 'mainnet_64m') | ||
def test_get_conversion_request(prepared_node, should_prepare): | ||
if should_prepare: | ||
wallet = tt.Wallet(attach_to=prepared_node) | ||
create_account_and_fund_it(wallet, 'seanmclellan', tbds=tt.Asset.Tbd(100), vests=tt.Asset.Test(100)) | ||
wallet.create_account('seanmclellan', hbds=tt.Asset.Tbd(100), vests=tt.Asset.Test(100)) | ||
wallet.api.convert_hbd('seanmclellan', tt.Asset.Tbd(10)) | ||
prepared_node.api.condenser.get_conversion_requests('seanmclellan') |
5 changes: 2 additions & 3 deletions
5
...i_tests/message_format_tests/condenser_api_tests/test_get_expiring_vesting_delegations.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import test_tools as tt | ||
|
||
from ..local_tools import create_account_and_fund_it, create_and_cancel_vesting_delegation, date_from_now, run_for | ||
from ..local_tools import create_and_cancel_vesting_delegation, date_from_now, run_for | ||
|
||
|
||
@run_for('testnet', 'mainnet_5m', 'mainnet_64m') | ||
def test_get_expiring_vesting_delegations(prepared_node, should_prepare): | ||
if should_prepare: | ||
wallet = tt.Wallet(attach_to=prepared_node) | ||
|
||
create_account_and_fund_it(wallet, 'alice', tests=tt.Asset.Test(100), vests=tt.Asset.Test(100)) | ||
wallet.create_account('alice', hives=tt.Asset.Test(100), vests=tt.Asset.Test(100)) | ||
wallet.api.create_account('initminer', 'bob', '{}') | ||
create_and_cancel_vesting_delegation(wallet, 'alice', 'bob') | ||
prepared_node.api.condenser.get_expiring_vesting_delegations('alice', date_from_now(weeks=0)) |
4 changes: 2 additions & 2 deletions
4
tests/api_tests/message_format_tests/condenser_api_tests/test_get_market_history.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import test_tools as tt | ||
|
||
from ..local_tools import create_account_and_fund_it, date_from_now, run_for | ||
from ..local_tools import date_from_now, run_for | ||
|
||
|
||
@run_for('testnet', 'mainnet_5m', 'mainnet_64m') | ||
def test_get_market_history(prepared_node, should_prepare): | ||
if should_prepare: | ||
wallet = tt.Wallet(attach_to=prepared_node) | ||
create_account_and_fund_it(wallet, 'alice', tests=tt.Asset.Test(100), vests=tt.Asset.Test(100)) | ||
wallet.create_account('alice', hives=tt.Asset.Test(100), vests=tt.Asset.Test(100)) | ||
wallet.api.create_order('alice', 0, tt.Asset.Test(50), tt.Asset.Tbd(5), False, 3600) | ||
wallet.api.create_order('initminer', 1, tt.Asset.Tbd(50), tt.Asset.Test(100), False, 3600) | ||
prepared_node.api.condenser.get_market_history(3600, date_from_now(weeks=-100), date_from_now(weeks=1)) |
4 changes: 2 additions & 2 deletions
4
tests/api_tests/message_format_tests/condenser_api_tests/test_get_open_orders.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import test_tools as tt | ||
|
||
from ..local_tools import create_account_and_fund_it, run_for | ||
from ..local_tools import run_for | ||
|
||
|
||
@run_for('testnet', 'mainnet_5m', 'mainnet_64m') | ||
def test_get_open_orders(prepared_node, should_prepare): | ||
if should_prepare: | ||
wallet = tt.Wallet(attach_to=prepared_node) | ||
create_account_and_fund_it(wallet, 'abit', tests=tt.Asset.Test(100), vests=tt.Asset.Test(100)) | ||
wallet.create_account('abit', hives=tt.Asset.Test(100), vests=tt.Asset.Test(100)) | ||
wallet.api.create_order('abit', 0, tt.Asset.Test(50), tt.Asset.Tbd(5), False, 3600) | ||
prepared_node.api.condenser.get_open_orders('abit') |
8 changes: 4 additions & 4 deletions
8
tests/api_tests/message_format_tests/condenser_api_tests/test_get_order_book.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.