Browse Source

Protocol version bump.

cl-refactor
Gav Wood 11 years ago
parent
commit
6a3429a81d
  1. 2
      libethcore/CommonEth.cpp
  2. 6
      stdserv.js

2
libethcore/CommonEth.cpp

@ -29,7 +29,7 @@ using namespace eth;
//#define ETH_ADDRESS_DEBUG 1
const unsigned eth::c_protocolVersion = 23;
const unsigned eth::c_protocolVersion = 24;
const unsigned eth::c_databaseVersion = 1;
static const vector<pair<u256, string>> g_units =

6
stdserv.js

@ -152,8 +152,8 @@ var exchangeCode = eth.lll("
(def 'rateof (_item) @@ (+ _item 1))
(def 'idof (_item) @@ (+ _item 2))
(def 'wantof (_item) @@ (+ _item 3))
(def 'newitem (rate who want) {
(set 'pos (sha3pair rate who))
(def 'newitem (rate who want list) {
(set 'pos (sha3trip rate who list))
[[ (+ @pos 1) ]] rate
[[ (+ @pos 2) ]] who
[[ (+ @pos 3) ]] want
@ -225,7 +225,7 @@ var exchangeCode = eth.lll("
(set 'last @list)
(set 'item @@ @last)
(set 'newpos (newitem @rate (caller) @xwant))
(set 'newpos (newitem @rate (caller) @xwant @list))
(for {} (&& @item (!= @item @newpos) (>= (rateof @item) @rate)) { (set 'last @item) (inc item) } {})
(if (= @item @newpos)

Loading…
Cancel
Save