Re: test transactions

On 28 January 2016 at 14:49, Adrian Hope-Bailie <adrian@hopebailie.com>
wrote:

> If you find any bugs you can log them in the GitHub issue list.
> Preferably against the right component but just against the demo repo if
> you're unsure.
>
> Would be great if anyone else in the community wants to begin contributing
> to these projects too or even adding some new components.
>

Sure, but didnt know if it's a bug or not, as Im just running the demo
code, and wanted to see if this has happened before.

I'm generally very impressed with the code quality of five bells.  My own
webcredits system is much less mature, but I think I can align certain
elements.  I'd like to try and build an independent implementation of inter
ledger (with hopefully a slightly more emphasis of linked data, we will
see) ... seems like quite a big task, but maybe can be done in stages ...

Ill file this issue in GH then ...


>
> On 28 January 2016 at 15:34, Melvin Carvalho <melvincarvalho@gmail.com>
> wrote:
>
>>
>>
>> On 28 January 2016 at 11:55, Adrian Hope-Bailie <adrian@hopebailie.com>
>> wrote:
>>
>>> You can also click on any two ledgers in the visualisation and that will
>>> initiate a transaction from one to the other
>>>
>>
>> Ah thanks, I almost worked it out :)
>>
>> I get a 400 error when trying:
>>
>> payment from http://localhost:3007 to http://localhost:3007
>> jquery.js:8630 PUT http://localhost:5001/payments 400 (Bad Request)
>>
>> log:
>>
>> ledger-ledger7 2016-01-28T13:21:37.549Z koa INFO   --> PUT
>> /transfers/4a835880-7017-4c04-b557-2df5ff29590f 400 11ms -
>> visualization 2016-01-28T13:21:37.549Z error-handler ERROR Error: Bad
>> Request
>> visualization     at Request.callback
>> (/var/www/ld/dev/five-bells-demo/node_modules/five-bells-visualization/node_modules/five-bells-sender/node_modules/superagent/lib/node/index.js:826:17)
>> visualization     at IncomingMessage.<anonymous>
>> (/var/www/ld/dev/five-bells-demo/node_modules/five-bells-visualization/node_modules/five-bells-sender/node_modules/superagent/lib/node/index.js:1049:12)
>> visualization     at emitNone (events.js:85:20)
>> visualization     at IncomingMessage.emit (events.js:179:7)
>> visualization     at endReadableNT (_stream_readable.js:906:12)
>> visualization     at nextTickCallbackWith2Args (node.js:474:9)
>> visualization     at process._tickCallback (node.js:388:17)
>> visualization 2016-01-28T13:21:37.550Z koa INFO   --> PUT /payments 400
>> 250ms -
>>
>> some previous messages:
>>
>> visualization got quotes for 3 paths
>> visualization got cheapest path: [{"source_transfers":[{"ledger":"
>> http://localhost:3007","credits":[{"amount":"1.05","account":"
>> http://localhost:3007/accounts/millie
>> "}],"expiry_duration":"6"}],"destination_transfers":[{"ledger":"
>> http://localhost:3003","debits":[{"amount":"0.17","account":"
>> http://localhost:3003/accounts/millie"}],"expiry_duration":"5"}],"id":"
>> http://localhost:4004/payments/11cad97d-e746-416a-94b3-fc9aae16a431
>> "},{"source_transfers":[{"ledger":"http://localhost:3003
>> ","credits":[{"amount":"0.17","account":"
>> http://localhost:3003/accounts/millie
>> "}],"expiry_duration":"5"}],"destination_transfers":[{"ledger":"
>> http://localhost:3007","debits":[{"amount":"1.00","account":"
>> http://localhost:3007/accounts/millie"}],"expiry_duration":"4"}],"id":"
>> http://localhost:4004/payments/8e00ba17-6365-4a39-8df9-06d0b8a4886b"}]
>> ledger-ledger7 2016-01-28T13:21:37.538Z koa INFO   <-- PUT
>> /transfers/4a835880-7017-4c04-b557-2df5ff29590f
>> ledger-ledger7 2016-01-28T13:21:37.546Z error-handler WARN Invalid body:
>> Body did not match schema Transfer
>> ledger-ledger7 2016-01-28T13:21:37.547Z error-handler DEBUG --
>> ValidationError: Additional properties not allowed
>> ledger-ledger7 2016-01-28T13:21:37.547Z error-handler DEBUG
>> /allOf/0/additionalProperties
>>
>>
>> Any ideas why?  I'll try and look thru the code further ...
>>
>>
>>>
>>> On 28 January 2016 at 11:33, Melvin Carvalho <melvincarvalho@gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On 28 January 2016 at 10:22, Melvin Carvalho <melvincarvalho@gmail.com>
>>>> wrote:
>>>>
>>>>> Looking at the five bells demo
>>>>>
>>>>> https://github.com/interledger/five-bells-demo
>>>>>
>>>>> I am able to get the 8 ledgers up and visualized.  I can also see them
>>>>> using sqlite, and access each account individually.
>>>>>
>>>>> The README says
>>>>>
>>>>> "It allows you to very quickly spin up a complete Interledger network *and
>>>>> do test transactions*."
>>>>>
>>>>> It doesnt say how to do transactions.  Is there any guide?
>>>>>
>>>>>
>>>>>
>>>> This seemed to work:
>>>>
>>>> ./send.js http://localhost:3002 http://localhost:3002
>>>> crawler found 8 ledgers and 7 traders
>>>> findPath http://localhost:3002 -> http://localhost:3002
>>>> findPath found 3 paths
>>>> got quotes for 3 paths
>>>> got cheapest path: [{"source_transfers":[{"ledger":"
>>>> http://localhost:3002","credits":[{"amount":"1.01","account":"
>>>> http://localhost:3002/accounts/mike
>>>> "}],"expiry_duration":"6"}],"destination_transfers":[{"ledger":"
>>>> http://localhost:3005","debits":[{"amount":"0.57","account":"
>>>> http://localhost:3005/accounts/mike"}],"expiry_duration":"5"}],"id":"
>>>> http://localhost:4006/payments/cdc27025-8e76-41a0-a1fe-20ce1324aca8
>>>> "},{"source_transfers":[{"ledger":"http://localhost:3005
>>>> ","credits":[{"amount":"0.57","account":"
>>>> http://localhost:3005/accounts/mike
>>>> "}],"expiry_duration":"5"}],"destination_transfers":[{"ledger":"
>>>> http://localhost:3002","debits":[{"amount":"1.00","account":"
>>>> http://localhost:3002/accounts/mike"}],"expiry_duration":"4"}],"id":"
>>>> http://localhost:4006/payments/f471caee-6339-462c-99b1-45f1ff9c9ece"}]
>>>>
>>>> 3002    hold    -2.220446049250313e-16
>>>> 3002    admin    0
>>>> 3002    mark    1500000
>>>> 3002    millie    1500000
>>>> 3002    mary    1500000
>>>> 3002    mike    1500000.01
>>>> 3002    alice    1499998.99
>>>> 3002    vinnie    0
>>>> 3002    bob    1500001
>>>>
>>>>
>>>>
>>>
>>
>

Received on Thursday, 28 January 2016 15:30:30 UTC