Skip to content

Commit 5ba7dc7

Browse files
authored
Merge pull request #2777 from bitshares/release
Merge release branch into testnet branch
2 parents 2950914 + 0d290e9 commit 5ba7dc7

File tree

9 files changed

+24
-20
lines changed

9 files changed

+24
-20
lines changed

.github/workflows/build-and-test.ubuntu-debug.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
services:
1414
elasticsearch8:
15-
image: elastic/elasticsearch:8.8.1
15+
image: elastic/elasticsearch:8.9.1
1616
options: >-
1717
--env ES_JAVA_OPTS="-Xms512m -Xmx512m"
1818
--env discovery.type=single-node
@@ -22,7 +22,7 @@ jobs:
2222
--env cluster.routing.allocation.disk.threshold_enabled=false
2323
--publish 9200:9200
2424
elasticsearch7:
25-
image: elastic/elasticsearch:7.17.10
25+
image: elastic/elasticsearch:7.17.12
2626
options: >-
2727
--env ES_JAVA_OPTS="-Xms512m -Xmx512m"
2828
--env discovery.type=single-node
@@ -66,14 +66,14 @@ jobs:
6666
df -h .
6767
free
6868
mkdir -p _build
69-
sudo mkdir -p /_build/libraries /_build/programs /_build/tests /mnt/_build
70-
sudo chmod a+rwx /_build/libraries /_build/programs /_build/tests
69+
sudo mkdir -p /_build/libraries /_build/programs /mnt/_build/tests
70+
sudo chmod a+rwx /_build/libraries /_build/programs /mnt/_build/tests
7171
ln -s /_build/libraries _build/libraries
7272
ln -s /_build/programs _build/programs
73-
ln -s /_build/tests _build/tests
73+
ln -s /mnt/_build/tests _build/tests
7474
sudo ln -s /_build/libraries /mnt/_build/libraries
7575
sudo ln -s /_build/programs /mnt/_build/programs
76-
sudo ln -s /_build/tests /mnt/_build/tests
76+
sudo ln -s /mnt/_build/tests /_build/tests
7777
ls -al _build
7878
pushd _build
7979
export -n BOOST_ROOT BOOST_INCLUDEDIR BOOST_LIBRARYDIR

.github/workflows/build-and-test.ubuntu-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
services:
1414
elasticsearch8:
15-
image: elastic/elasticsearch:8.8.1
15+
image: elastic/elasticsearch:8.9.1
1616
options: >-
1717
--env ES_JAVA_OPTS="-Xms512m -Xmx512m"
1818
--env discovery.type=single-node
@@ -22,7 +22,7 @@ jobs:
2222
--env cluster.routing.allocation.disk.threshold_enabled=false
2323
--publish 9200:9200
2424
elasticsearch7:
25-
image: elastic/elasticsearch:7.17.10
25+
image: elastic/elasticsearch:7.17.12
2626
options: >-
2727
--env ES_JAVA_OPTS="-Xms512m -Xmx512m"
2828
--env discovery.type=single-node

.github/workflows/build-and-test.win.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ env:
66
# The following are for windows cross-build only:
77
BOOST_VERSION: 1_69_0
88
BOOST_DOTTED_VERSION: 1.69.0
9-
CURL_VERSION: 8.1.2
10-
OPENSSL_VERSION: 1.1.1u
11-
ZLIB_VERSION: 1.2.13
9+
CURL_VERSION: 8.2.1
10+
OPENSSL_VERSION: 1.1.1v
11+
ZLIB_VERSION: 1.3
1212
jobs:
1313
prepare-mingw64-libs:
1414
name: Build required 3rd-party libraries

.github/workflows/sonar-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
services:
1414
elasticsearch8:
15-
image: elastic/elasticsearch:8.8.1
15+
image: elastic/elasticsearch:8.9.1
1616
options: >-
1717
--env ES_JAVA_OPTS="-Xms512m -Xmx512m"
1818
--env discovery.type=single-node

libraries/chain/db_market.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,13 +1225,14 @@ database::match_result_type database::match_limit_settled_debt( const limit_orde
12251225
wlog( "Unexpected scene: obj.for_sale > bitasset.individual_settlement_fund" );
12261226
obj.for_sale = bitasset.individual_settlement_fund;
12271227
obj.sell_price = ~bitasset.get_individual_settlement_price();
1228-
} // GCOVR_EXEL_STOP
1228+
} // GCOVR_EXCL_STOP
12291229
}
12301230
else
12311231
{
12321232
obj.for_sale = bitasset.individual_settlement_fund;
12331233
obj.sell_price = ~bitasset.get_individual_settlement_price();
12341234
}
1235+
// Note: filled_amount is not updated, but it should be fine
12351236
});
12361237
// Note:
12371238
// After the price is updated, it is possible that the order can be matched with another order on the order
@@ -1325,6 +1326,7 @@ database::match_result_type database::match_settled_debt_limit( const limit_orde
13251326
obj.for_sale = bitasset.individual_settlement_fund;
13261327
obj.sell_price = ~bitasset.get_individual_settlement_price();
13271328
} // GCOVR_EXCL_STOP
1329+
// Note: filled_amount is not updated, but it should be fine
13281330
});
13291331
}
13301332

@@ -1889,6 +1891,7 @@ bool database::fill_limit_order( const limit_order_object& order, const asset& p
18891891
}
18901892
modify( order, [&pays,&new_take_profit_order_id]( limit_order_object& b ) {
18911893
b.for_sale -= pays.amount;
1894+
b.filled_amount += pays.amount.value;
18921895
b.deferred_fee = 0;
18931896
b.deferred_paid_fee.amount = 0;
18941897
if( new_take_profit_order_id.valid() ) // A new take profit order is created, link it to this order

libraries/chain/include/graphene/chain/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#define GRAPHENE_MAX_NESTED_OBJECTS (200)
3434

35-
const std::string GRAPHENE_CURRENT_DB_VERSION = "20230529";
35+
const std::string GRAPHENE_CURRENT_DB_VERSION = "20230906";
3636

3737
#define GRAPHENE_RECENTLY_MISSED_COUNT_INCREMENT 4
3838
#define GRAPHENE_RECENTLY_MISSED_COUNT_DECREMENT 3

libraries/chain/include/graphene/chain/market_object.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ using namespace graphene::db;
4545
class limit_order_object : public abstract_object<limit_order_object, protocol_ids, limit_order_object_type>
4646
{
4747
public:
48-
time_point_sec expiration;
49-
account_id_type seller;
50-
share_type for_sale; ///< asset id is sell_price.base.asset_id
51-
price sell_price;
48+
time_point_sec expiration; ///< When this limit order will expire
49+
account_id_type seller; ///< Who is selling
50+
share_type for_sale; ///< The amount for sale, asset id is sell_price.base.asset_id
51+
price sell_price; ///< The seller's asking price
52+
fc::uint128_t filled_amount = 0; ///< The amount that has been sold, asset id is sell_price.base.asset_id
5253
share_type deferred_fee; ///< fee converted to CORE
5354
asset deferred_paid_fee; ///< originally paid fee
5455
bool is_settled_debt = false; ///< Whether this order is an individual settlement fund

libraries/chain/market_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ share_type call_order_object::get_max_debt_to_cover( price match_price,
308308

309309
FC_REFLECT_DERIVED_NO_TYPENAME( graphene::chain::limit_order_object,
310310
(graphene::db::object),
311-
(expiration)(seller)(for_sale)(sell_price)(deferred_fee)(deferred_paid_fee)
311+
(expiration)(seller)(for_sale)(sell_price)(filled_amount)(deferred_fee)(deferred_paid_fee)
312312
(is_settled_debt)(on_fill)(take_profit_order_id)
313313
)
314314

libraries/fc

Submodule fc updated 1 file

0 commit comments

Comments
 (0)