Richard Holland
0aa3b2ed74
fix txn hash lookup from index
2023-02-13 13:41:18 +00:00
Richard Holland
c9b4977d93
preliminary support for xls37 (Improved Concise Transaction Identifier)
2023-02-13 13:18:00 +00:00
Richard Holland
daacb45613
add CTIM to tx rpc
2023-02-10 15:53:49 +00:00
Howard Hinnant
32559463ef
Change default vote on fixUniversalNumber from yes to no ( #4414 )
2023-02-09 21:01:48 -08:00
Richard Holland
2216c62fbc
Merge branch 'dev' of github.com:Xahau/xahaud into dev
2023-02-09 16:59:25 +00:00
Richard Holland
750dbfc364
capitalization fix for server_definitions with URIToken
2023-02-09 16:59:16 +00:00
Wietse Wind
68bf9f264f
Publish binary
2023-02-09 16:12:28 +01:00
Wietse Wind
c625309733
Build container: map /data/builds
2023-02-09 15:14:59 +01:00
Wietse Wind
ae0335a308
Conditionally copy to /data/builds
2023-02-09 14:55:47 +01:00
Wietse Wind
7a5d4d1977
Publish builds locally, to: http://build.xahau.tech
2023-02-09 14:51:37 +01:00
Wietse Wind
c33f5b46a8
zipzip - zip
2023-02-09 14:49:34 +01:00
Richard Holland
12d9d399a9
fix uritoken sell bug
2023-02-09 13:27:38 +00:00
Richard Holland
a11905c43a
Merge branch 'dev' of github.com:Xahau/xahaud into dev
2023-02-09 12:35:55 +00:00
Richard Holland
348bfe5ede
prevent version string clobbering by build engine
2023-02-09 12:35:45 +00:00
Wietse Wind
7fee0eb171
Fixes zip-zip
2023-02-09 13:29:46 +01:00
Richard Holland
69327445e9
rework URIToken amendment to use 5 different explicit transactors rather than inferred operations
2023-02-09 11:38:19 +00:00
Ed Hennis
8f514937a4
Update documented pathfinding configuration defaults: ( #4409 )
...
* Add recommended values for node which want to support "advanced"
pathfinding, which is effectively the old default behavior.
2023-02-08 12:14:09 -08:00
John Freeman
36b34a7bd5
Update dependency: grpc ( #4407 )
2023-02-07 15:46:38 -08:00
Howard Hinnant
5edaec2bd0
Introduce min/max observers for Number
...
Three static member functions are introduced with
definitions consistent with std::numeric_limits:
static constexpr Number min() noexcept;
Returns: The minimum positive value. This is the value closest to zero.
static constexpr Number max() noexcept;
Returns: The maximum possible value.
static constexpr Number lowest() noexcept;
Returns: The negative value which is less than all other values.
2023-02-07 15:43:28 -08:00
Howard Hinnant
2f1f453052
Optimize uint128_t division by 10 within Number.cpp
...
* Optimization includes computing remainder from division.
* Used only within Number::operator*=.
2023-02-07 15:43:28 -08:00
Howard Hinnant
6eaaa7bcfa
Replace Number division algorithm
...
* Replace division with faster algorithm.
* Correct some rounding bugs in multiplication.
* Add tests for rounding bugs.
2023-02-07 15:43:28 -08:00
Howard Hinnant
e354497f63
Include rounding mode in XRPAmount to STAmount conversion.
2023-02-07 15:43:28 -08:00
Howard Hinnant
6fcd654bee
Remove undefined behavior
...
* Taking the negative of a signed negative is UB, but
taking the negative of an unsigned is not.
2023-02-07 15:43:28 -08:00
Howard Hinnant
d275a2ab72
Silence warnings
2023-02-07 15:43:28 -08:00
Howard Hinnant
3f33471220
Introduce rounding modes for Number:
...
You can set a thread-local flag to direct Number how to round
non-exact results with the syntax:
Number::rounding_mode prev_mode = Number::setround(Number::towards_zero);
This flag will stay in effect for this thread only until another call
to setround. The previously set rounding mode is returned.
You can also retrieve the current rounding mode with:
Number::rounding_mode current_mode = Number::getround();
The available rounding modes are:
* to_nearest : Rounds to nearest representable value. On tie, rounds
to even.
* towards_zero : Rounds towards zero.
* downward : Rounds towards negative infinity.
* upward : Rounds towards positive infinity.
The default rounding mode is to_nearest.
2023-02-07 15:43:28 -08:00
Howard Hinnant
a82ad5ba76
Use Number for IOUAmount and STAmount arithmetic
...
* Guarded by amendment fixUniversalNumber
* Produces slightly better accuracy in some computations.
2023-02-07 15:43:28 -08:00
Howard Hinnant
48e804c40c
Add tests
2023-02-07 15:43:28 -08:00
Howard Hinnant
c9c54c9799
Add implicit conversion from STAmount to Number
2023-02-07 15:43:28 -08:00
Howard Hinnant
24fe5f9fd0
Add clip
...
* Return 0 if abs(x) < limit, else returns x
2023-02-07 15:43:28 -08:00
Howard Hinnant
476ee8a479
Add conversions between Number, XRPAmount and int64_t
...
* Conversions to Number are implicit
* Conversions away from Number are explicit and potentially lossy
* If lossy, round to nearest, and to even on tie
2023-02-07 15:43:28 -08:00
Howard Hinnant
0ee63b7c7b
AMM Add Number class and associated algorithms
2023-02-07 15:43:28 -08:00
Richard Holland
2916b7e692
fix buildinfo test
2023-02-07 18:13:31 +00:00
Richard Holland
d72a597aa4
fix for https://github.com/Xahau/xahaud/issues/7
2023-02-07 16:55:38 +00:00
Richard Holland
5da990661a
version string generation
2023-02-07 16:15:57 +00:00
Richard Holland
d3cc1a8798
fix validator list unit tests
2023-02-07 12:10:41 +00:00
Richard Holland
aa61e1be38
fix for https://github.com/Xahau/xahaud/issues/6
2023-02-07 09:40:47 +00:00
Richard Holland
307f9702ea
fix for https://github.com/Xahau/xahaud/issues/5
2023-02-07 09:18:46 +00:00
Richard Holland
192308fb3e
fix for https://github.com/Xahau/xahaud/issues/4
2023-02-07 08:52:39 +00:00
Richard Holland
0e2e674c51
clean up invariant check for IOUescrow + remove (now) unwanted testcase
2023-02-07 08:43:23 +00:00
Richard Holland
0f10f3b5c0
second fix for https://github.com/Xahau/xahaud/issues/3
2023-02-06 12:41:30 +00:00
Richard Holland
86614de00e
fix admin rpc test for networkid
2023-02-06 12:16:26 +00:00
Richard Holland
b9903a822f
remove networkid from test env
2023-02-06 11:11:46 +00:00
Richard Holland
584db523b4
merge fail
2023-02-06 10:50:43 +00:00
Richard Holland
14dee2d976
Merge branch 'icv2-super' into dev
2023-02-06 10:35:57 +00:00
Richard Holland
cfb8e02f16
bug fix
2023-02-06 09:17:33 +00:00
Denis Angell
43b6e89303
nit: change flag guard
2023-02-06 09:17:13 +00:00
Denis Angell
0aa2c26680
clang-format
2023-02-06 09:16:10 +00:00
Denis Angell
c848fe91d6
tests
2023-02-06 09:15:53 +00:00
Denis Angell
56d062f907
fix lint bug
2023-02-06 09:13:57 +00:00
Denis Angell
7d4b00cfcb
remove comments
2023-02-06 09:12:56 +00:00