Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
bcea8cbcef
  1. 2
      iguana/exchanges/bitcoin.c
  2. 2
      iguana/js/widget.js
  3. 2
      iguana/widget-demo.html

2
iguana/exchanges/bitcoin.c

@ -549,7 +549,7 @@ int32_t _iguana_calcrmd160(struct iguana_info *coin,struct vin_info *vp)
plen = *script++;
if ( bitcoin_pubkeylen(script) != plen )
{
printf("invalid pubkey[%d] len %d\n",bitcoin_pubkeylen(script),script[0]);
printf("multisig.%d of %d: invalid pubkey[%02x] len %d\n",i,n,script[0],bitcoin_pubkeylen(script));
return(-1);
}
memcpy(vp->signers[i].pubkey,script,plen);

2
iguana/js/widget.js

@ -10,7 +10,7 @@ widgetsManagement.createWidgets = function() {
var widget = widgets[key];
widget.innerHTML="";
widget.appendChild(iframeEL);
iframeEL.src="//127.0.0.1:7777/widgets?id="+widget.getAttribute("data-ref");
iframeEL.src="//127.0.0.1:7778/js/widgets?id="+widget.getAttribute("data-ref");
iframeEL.style.width="100%";
iframeEL.style.height="100%";
iframeEL.style.border="0";

2
iguana/widget-demo.html

@ -2,6 +2,6 @@
<head><title>Widget Example</title></head>
<body>
<div class="iguana-widget" style="width: 1000px; height:1000px;" data-ref="123456">iguana widget is loading...</div>
<script type="text/javascript" src="http://127.0.0.1:7777/js/widget.js"></script>
<script type="text/javascript" src="http://127.0.0.1:7778/js/widget.js"></script>
</body>
</html>

Loading…
Cancel
Save