Florian Dold
eb55997084
re-format code
2019-08-25 16:18:24 +02:00
Christian Grothoff
f725593155
eliminate useless global variable TFH_handle_history_range_step
2019-06-03 00:25:11 +02:00
Christian Grothoff
9c194f79a5
adapt to GNUnet API change
2019-05-02 22:25:47 +02:00
Marcello Stanisci
25f444a361
Address compilation warnings.
2019-04-11 00:33:01 +02:00
Marcello Stanisci
12aa516024
Fix history CMD loop, + make fakebank demonize.
...
This latter enable us to call the "check-service" CMD
against the Fakebank, instead of doing forced X seconds
sleep.
2019-04-11 00:23:28 +02:00
Marcello Stanisci
5c49663309
Fixing twisted tests.
...
It has been observed that when a "twisted" test has "very little"
commands in the stack, it uses to fail since the proxied service
cannot be reached.
This commit puts some delay before the first command gets run
by the test interpreter; both in the form of a "blind" sleep, and
with a more structured 'wget' loop.
2019-04-10 17:07:14 +02:00
Marcello Stanisci
ed0da1fdb3
/history-range.
...
Implementing the "lib" and "testing-lib" functions to use it.
2019-04-08 23:56:46 +02:00
Marcello Stanisci
e13a8902f0
Put /history[-range] logic in a dedicate file.
2019-04-08 02:37:46 +02:00
Marcello Stanisci
9fc380f7c8
Set range pointer.
2019-04-08 02:37:45 +02:00
Marcello Stanisci
e24e845b7d
debug message
2019-04-08 02:37:45 +02:00
Marcello Stanisci
704e0913c6
Fix compilation warnings, + enable polymorphic /history handler.
2019-04-08 02:37:45 +02:00
Marcello Stanisci
ddb8cdfa7a
Finishing /history-range implementation, untested.
2019-04-08 02:37:45 +02:00
Marcello Stanisci
3c66bb30b9
Gather /history implementation(s) in one point.
2019-04-08 02:37:45 +02:00
Marcello Stanisci
eca27d9d91
Finish abstract history builder.
2019-04-08 02:37:44 +02:00
Marcello Stanisci
8655a40ad7
Half-baking #5666 .
2019-04-05 19:31:01 +02:00
Marcello Stanisci
32cdef2b62
Making the bug /history[-range] args parser.
2019-04-05 16:13:56 +02:00
Marcello Stanisci
a3979b583f
"/history" 'start' default value.
...
The fakebank got adapted to the same logic from the
Python bank (with negative deltas, 'start' defaults to
UINT64_MAX, whereas with positives it defaults to 0).
2019-03-21 18:45:50 +01:00
Marcello Stanisci
115ecfbc49
Fakebank debug
2019-03-14 18:48:11 +01:00
Christian Grothoff
1ce69e6b2f
initialize start_number in fakebank
2019-02-15 12:41:26 +01:00
Marcello Stanisci
15c1a877c6
/history API semantics extended.
...
That API has now a new 'ordering' flag that lets the
client choose what ordering the results should have:
ascending or descending.
In particular, this change adapted the fakebank and
tests logic to such introduction.
2018-12-14 19:25:42 +01:00
Florian Dold
ec08232b3f
increase listen backlog for fakebank
2018-08-19 11:37:42 +02:00
Christian Grothoff
7fb43dd2ae
make fakebank use epoll() on platforms where it is available
2018-08-19 11:20:35 +02:00
Marcello Stanisci
6f579eb833
From payto:// to base url.
...
The conversion prepends http// or https://
depending on the port given beside the hostname.
If port is 433, then prepends https://, otherwise
prepends http://.
For now, the conversion was only necessary at
the /history bank lib.
2018-06-12 19:16:43 +02:00
Florian Dold
e318edb5e5
use url instead of uri consistently
2018-01-30 01:38:04 +01:00
Christian Grothoff
bc7957f393
fix fakebank memory leak
2018-01-16 13:11:35 +01:00
Marcello Stanisci
346c351e5f
redefining/adding bank error codes
2017-12-22 21:22:57 +01:00
Marcello Stanisci
9ea3145745
respect /reject API: credit_account -> account_number
2017-12-13 19:07:41 +01:00
Christian Grothoff
cf9e5efbfb
use dual stack for fakebank
2017-12-12 19:23:16 +01:00
Christian Grothoff
878c68faf6
better diagnostics from fakebank
2017-12-10 21:19:30 +01:00
Christian Grothoff
6623afa2a3
add testcase for #5077 (passes), start to reduce use of exchange's admin/add/incoming ( #5172 , more to come)
2017-12-10 16:02:03 +01:00
Florian Dold
e75afb3164
use row_id instead of serial_id everywhere
2017-12-08 17:04:11 +01:00
Christian Grothoff
042616899f
largely fix #5077
2017-12-06 19:24:00 +01:00
Christian Grothoff
0580168c0e
automated refunds of expired reserves now work and tested, fixes #4956
2017-06-11 17:04:54 +02:00
Christian Grothoff
ba17729f65
tolerate empty transaction list when returning history
2017-06-11 16:06:52 +02:00
Christian Grothoff
becb7139e1
fix doxygen
2017-06-11 15:28:18 +02:00
Christian Grothoff
16b7c26605
modify fakebank API to allow arbitrary subjects, not just well-fromed WTIDs
2017-06-11 15:25:59 +02:00
Christian Grothoff
59fd83b731
fix memory leaks ( #5050 )
2017-06-04 12:07:53 +02:00
Christian Grothoff
1e30d60a25
fixing misc doxygen issues
2017-06-04 11:30:43 +02:00
Christian Grothoff
bdfa18830d
start_row is actually start in the spec, fix naming
2017-05-16 11:05:00 +02:00
Christian Grothoff
7c28823caf
handle base32-wire transfer subject being followed by space+exchange base url in wire plugin and fakebank
2017-05-16 11:05:00 +02:00
Christian Grothoff
be3b891dbd
fix port numbers, no longer 8081 but on 8080; and box json array /history response in {data} as required by API
2017-05-16 11:05:00 +02:00
Marcello Stanisci
edf24557bf
revert last change
2017-05-10 15:46:05 +02:00
Marcello Stanisci
ec53b9f6ce
serial_id -> row_id in returned json
2017-05-10 11:49:59 +02:00
Christian Grothoff
783642272d
fix possible NULL deref, simplify logic
2017-05-09 13:24:53 +02:00
Christian Grothoff
18a020dd02
implement fakebank support (incl. tests) for #5005/#4964/4959
2017-05-07 21:11:56 +02:00
Christian Grothoff
69fa9b41d1
start to add /history testing support to tests, fix some minor issues
2017-05-04 23:52:54 +02:00
Christian Grothoff
1ea22a37c6
add /history support to fakebank
2017-05-04 23:29:08 +02:00
Christian Grothoff
234dbcc7b7
switch bank api to new authentication method API
2017-05-04 15:18:43 +02:00
Christian Grothoff
57502edf15
fix typo
2017-05-04 14:06:16 +02:00
Christian Grothoff
405859d068
implement #4993
2017-05-04 11:19:00 +02:00