This commit is contained in:
jl777
2017-03-20 04:53:26 +02:00
parent 1bd51c5c55
commit 5eaffe7531

View File

@@ -748,52 +748,52 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
} }
else if ( baseid == JPY ) else if ( baseid == JPY )
{ {
if ( height == 1014 || height == 998 || height == 973 || height == 139 || height == 971 || height == 141 || height == 816 ) if ( height == 1014 || height == 998 || height == 973 || height == 139 || height == 971 || height == 141 || height == 816 || height == 814 )
return(0); return(0);
} }
else if ( baseid == GBP ) else if ( baseid == GBP )
{ {
if ( height == 997 || height == 970 || height == 953 || height == 951 || height == 803 ) if ( height == 997 || height == 970 || height == 953 || height == 951 || height == 803 || height == 800 )
return(0); return(0);
} }
else if ( baseid == AUD ) else if ( baseid == AUD )
{ {
if ( height == 985 || height == 958 || height == 936 || height == 933 || height == 790 ) if ( height == 985 || height == 958 || height == 936 || height == 933 || height == 790 || height == 788 )
return(0); return(0);
} }
else if ( baseid == CAD ) else if ( baseid == CAD )
{ {
if ( height == 1181 || height == 1179 || height == 1159 || height == 1134 || height == 1132 ) if ( height == 1181 || height == 1179 || height == 1159 || height == 1134 || height == 1132 || height == 121 || height == 970 )
return(0); return(0);
} }
else if ( baseid == CHF ) else if ( baseid == CHF )
{ {
if ( height == 960 || height == 931 || height == 914 || height == 122 || height == 912 || height == 141 || height == 780 ) if ( height == 960 || height == 931 || height == 914 || height == 122 || height == 912 || height == 141 || height == 780 || height == 145 || height == 777 )
return(0); return(0);
} }
else if ( baseid == NZD ) else if ( baseid == NZD )
{ {
if ( height == 1113 || height == 1083 || height == 1067 || height == 265 || height == 1064 || height == 920 ) if ( height == 1113 || height == 1083 || height == 1067 || height == 265 || height == 1064 || height == 920 || height == 913 )
return(0); return(0);
} }
else if ( baseid == CNY ) else if ( baseid == CNY )
{ {
if ( height == 982 || height == 957 || height == 931 || height == 119 || height == 929 || height == 134 || height == 782 ) if ( height == 982 || height == 957 || height == 931 || height == 119 || height == 929 || height == 134 || height == 782 || height == 137 || height == 775 )
return(0); return(0);
} }
else if ( baseid == RUB ) else if ( baseid == RUB )
{ {
if ( height == 1074 || height == 1040 || height == 1014 || height == 163 || height == 1013 || height == 877 ) if ( height == 1074 || height == 1040 || height == 1014 || height == 163 || height == 1013 || height == 877 || height == 867 )
return(0); return(0);
} }
else if ( baseid == MXN ) else if ( baseid == MXN )
{ {
if ( height == 1069 || height == 1048 || height == 1028 || height == 121 || height == 1027 || height == 146 || height == 894 ) if ( height == 1069 || height == 1048 || height == 1028 || height == 121 || height == 1027 || height == 146 || height == 894 || height == 891 )
return(0); return(0);
} }
else if ( baseid == BRL ) else if ( baseid == BRL )
{ {
if ( height == 972 || height == 943 || height == 922 || height == 118 || height == 920 || height == 145 || height == 787 ) if ( height == 972 || height == 943 || height == 922 || height == 118 || height == 920 || height == 145 || height == 787 || height == 783 )
return(0); return(0);
} }
else if ( baseid == INR ) else if ( baseid == INR )
@@ -803,97 +803,97 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
} }
else if ( baseid == PLN ) else if ( baseid == PLN )
{ {
if ( height == 1009 || height == 984 || height == 960 || height == 959 || height == 798 ) if ( height == 1009 || height == 984 || height == 960 || height == 959 || height == 798 || height == 794 )
return(0); return(0);
} }
else if ( baseid == HKD ) else if ( baseid == HKD )
{ {
if ( height == 1002 || height == 979 || height == 947 || height == 123 || height == 946 || height == 153 || height == 811 ) if ( height == 1002 || height == 979 || height == 947 || height == 123 || height == 946 || height == 153 || height == 811 || height == 808 )
return(0); return(0);
} }
else if ( baseid == TRY ) else if ( baseid == TRY )
{ {
if ( height == 991 || height == 974 || height == 949 || height == 141 || height == 948 || height == 783 ) if ( height == 991 || height == 974 || height == 949 || height == 141 || height == 948 || height == 783 || height == 153 || height == 781 )
return(0); return(0);
} }
else if ( baseid == NOK ) else if ( baseid == NOK )
{ {
if ( height == 962 || height == 911 || height == 907 || height == 125 || height == 765 || height == 150 || height == 762 ) if ( height == 962 || height == 911 || height == 907 || height == 125 || height == 765 || height == 150 || height == 762 || height == 760 )
return(0); return(0);
} }
else if ( baseid == ZAR ) else if ( baseid == ZAR )
{ {
if ( height == 956 || height == 937 || height == 906 || height == 905 || height == 122 || height == 756 ) if ( height == 956 || height == 937 || height == 906 || height == 905 || height == 122 || height == 756 || height == 754 )
return(0); return(0);
} }
else if ( baseid == SEK ) else if ( baseid == SEK )
{ {
if ( height == 943 || height == 925 || height == 896 || height == 147 || height == 894 || height == 759 ) if ( height == 943 || height == 925 || height == 896 || height == 147 || height == 894 || height == 759 || height == 751 )
return(0); return(0);
} }
else if ( baseid == CZK ) else if ( baseid == CZK )
{ {
if ( height == 1079 || height == 1054 || height == 1032 || height == 121 || height == 1030 || height == 182 || height == 876 ) if ( height == 1079 || height == 1054 || height == 1032 || height == 121 || height == 1030 || height == 182 || height == 876 || height == 873 )
return(0); return(0);
} }
else if ( baseid == HUF ) else if ( baseid == HUF )
{ {
if ( height == 2378 || height == 2376 || height == 2371 || height == 1330 || height == 2326 || height == 1344 || height == 2305 ) if ( height == 2378 || height == 2376 || height == 2371 || height == 1330 || height == 2326 || height == 1344 || height == 2305 || height == 2304 )
return(0); return(0);
} }
else if ( baseid == DKK ) else if ( baseid == DKK )
{ {
if ( height == 1214 || height == 1186 || height == 1158 || height == 126 || height == 1156 || height == 329 || height == 1021 ) if ( height == 1214 || height == 1186 || height == 1158 || height == 126 || height == 1156 || height == 329 || height == 1021 || height == 1016 )
return(0); return(0);
} }
else if ( baseid == ILS ) else if ( baseid == ILS )
{ {
if ( height == 1010 || height == 985 || height == 954 || height == 120 || height == 952 || height == 143 || height == 819 ) if ( height == 1010 || height == 985 || height == 954 || height == 120 || height == 952 || height == 143 || height == 819 || height == 817 )
return(0); return(0);
} }
else if ( baseid == MYR ) else if ( baseid == MYR )
{ {
if ( height == 1015 || height == 984 || height == 950 || height == 949 || height == 823 ) if ( height == 1015 || height == 984 || height == 950 || height == 949 || height == 823 || height == 820 )
return(0); return(0);
} }
else if ( baseid == PHP ) else if ( baseid == PHP )
{ {
if ( height == 1154 || height == 1114 || height == 1077 || height == 1076 || height == 931 ) if ( height == 1154 || height == 1114 || height == 1077 || height == 1076 || height == 931 || height == 927 )
return(0); return(0);
} }
else if ( baseid == KRW ) else if ( baseid == KRW )
{ {
if ( height == 1010 || height == 950 || height == 916 || height == 138 || height == 914 || height == 140 || height == 785 ) if ( height == 1010 || height == 950 || height == 916 || height == 138 || height == 914 || height == 140 || height == 785 || height == 782 )
return(0); return(0);
} }
else if ( baseid == RON ) else if ( baseid == RON )
{ {
if ( height == 1003 || height == 973 || height == 940 || height == 939 || height == 806 ) if ( height == 1003 || height == 973 || height == 940 || height == 939 || height == 806 || height == 802 )
return(0); return(0);
} }
else if ( baseid == SGD ) else if ( baseid == SGD )
{ {
if ( height == 1010 || height == 984 || height == 951 || height == 950 || height == 801 ) if ( height == 1010 || height == 984 || height == 951 || height == 950 || height == 801 || height == 798 )
return(0); return(0);
} }
else if ( baseid == THB ) else if ( baseid == THB )
{ {
if ( height == 968 || height == 933 || height == 898 || height == 897 || height == 788 ) if ( height == 968 || height == 933 || height == 898 || height == 897 || height == 788 || height == 786 )
return(0); return(0);
} }
else if ( baseid == BGN ) else if ( baseid == BGN )
{ {
if ( height == 1030 || height == 995 || height == 960 || height == 959 || height == 830 ) if ( height == 1030 || height == 995 || height == 960 || height == 959 || height == 830 || height == 822 )
return(0); return(0);
} }
else if ( baseid == HRK ) else if ( baseid == HRK )
{ {
if ( height == 1022 || height == 999 || height == 969 || height == 967 || height == 832 ) if ( height == 1022 || height == 999 || height == 969 || height == 967 || height == 832 || height == 829 )
return(0); return(0);
} }
else if ( baseid == IDR ) else if ( baseid == IDR )
{ {
if ( height == 720 || height == 715 || height == 714 || height == 696 || height == 695 ) if ( height == 720 || height == 715 || height == 714 || height == 696 || height == 695 || height == 694 )
return(0); return(0);
} }
} }
@@ -970,7 +970,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
} }
else else
{ {
int64_t val,prevtotal = 0; int32_t overflow = 0; /*int64_t val,prevtotal = 0; int32_t overflow = 0;
total = 0; total = 0;
for (i=1; i<n; i++) for (i=1; i<n; i++)
{ {
@@ -996,7 +996,11 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
printf("%.8f ",dstr(block.vtx[0].vout[i].nValue)); printf("%.8f ",dstr(block.vtx[0].vout[i].nValue));
printf("no opreturn entries to check ht.%d %s\n",height,ASSETCHAINS_SYMBOL); printf("no opreturn entries to check ht.%d %s\n",height,ASSETCHAINS_SYMBOL);
return(-1); return(-1);
} else return(0); } else return(0);*/
for (i=0; i<n; i++)
printf("%.8f ",dstr(block.vtx[0].vout[i].nValue));
printf("no opreturn entries to check ht.%d %s\n",height,ASSETCHAINS_SYMBOL);
return(-1);
} }
//printf("opretlen.%d num.%d\n",opretlen,num); //printf("opretlen.%d num.%d\n",opretlen,num);
} }